VirtualBox

Changeset 85252 in vbox for trunk/src


Ignore:
Timestamp:
Jul 11, 2020 11:26:04 PM (4 years ago)
Author:
vboxsync
Message:

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

File:
1 edited

Legend:

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

    r85121 r85252  
    131131typedef FNVBOXHOSTWEBCAMLIST *PFNVBOXHOSTWEBCAMLIST;
    132132
     133#if RT_CLANG_PREREQ(11, 0) && !RT_CLANG_PREREQ(13, 0) /*assuming this issue will be fixed eventually*/
     134static int loadHostWebcamLibrary(const char *pszPath, RTLDRMOD *phmod, void **ppfn)
     135#else
    133136static int loadHostWebcamLibrary(const char *pszPath, RTLDRMOD *phmod, PFNVBOXHOSTWEBCAMLIST *ppfn)
     137#endif
    134138{
    135139    int rc;
     
    185189        PFNVBOXHOSTWEBCAMLIST pfn = NULL;
    186190        RTLDRMOD hmod = NIL_RTLDRMOD;
     191#if RT_CLANG_PREREQ(11, 0) && !RT_CLANG_PREREQ(13, 0) /*assuming this issue will be fixed eventually*/
     192        int vrc = loadHostWebcamLibrary(strLibrary.c_str(), &hmod, (void **)&pfn);
     193#else
    187194        int vrc = loadHostWebcamLibrary(strLibrary.c_str(), &hmod, &pfn);
     195#endif
    188196
    189197        LogRel(("Load [%s] vrc=%Rrc\n", strLibrary.c_str(), vrc));
     
    193201            uint64_t u64Result = S_OK;
    194202            vrc = pfn(hostWebcamAdd, pList, &u64Result);
    195             Log(("VBoxHostWebcamList vrc %Rrc, result 0x%08X\n", vrc, u64Result));
     203            Log(("VBoxHostWebcamList vrc %Rrc, result 0x%08RX64\n", vrc, u64Result));
    196204            if (RT_FAILURE(vrc))
    197205            {
Note: See TracChangeset for help on using the changeset viewer.

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