VirtualBox

Changeset 85276 in vbox for trunk/src/VBox/Main/src-server


Ignore:
Timestamp:
Jul 12, 2020 1:47:12 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
139253
Message:

Main/VRDEServerImpl.cpp: Workaround for Clang 11 nothrow/PPFN issue. bugref:9790

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/VRDEServerImpl.cpp

    r85255 r85276  
    451451}
    452452
     453#if RT_CLANG_PREREQ(11, 0) && !RT_CLANG_PREREQ(13, 0) /*assuming this issue will be fixed eventually*/
     454static int loadVRDELibrary(const char *pszLibraryName, RTLDRMOD *phmod, void *ppfn)
     455#else
    453456static int loadVRDELibrary(const char *pszLibraryName, RTLDRMOD *phmod, PFNVRDESUPPORTEDPROPERTIES *ppfn)
     457#endif
    454458{
    455459    int rc = VINF_SUCCESS;
     
    543547        PFNVRDESUPPORTEDPROPERTIES pfn = NULL;
    544548        RTLDRMOD hmod = NIL_RTLDRMOD;
     549#if RT_CLANG_PREREQ(11, 0) && !RT_CLANG_PREREQ(13, 0) /*assuming this issue will be fixed eventually*/
     550        vrc = loadVRDELibrary(strVrdeLibrary.c_str(), &hmod, (void **)&pfn);
     551#else
    545552        vrc = loadVRDELibrary(strVrdeLibrary.c_str(), &hmod, &pfn);
     553#endif
    546554        Log(("VRDEPROP: load library [%s] rc %Rrc\n", strVrdeLibrary.c_str(), vrc));
    547555        if (RT_SUCCESS(vrc))
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette