VirtualBox

Changeset 95109 in vbox


Ignore:
Timestamp:
May 25, 2022 8:37:03 PM (3 years ago)
Author:
vboxsync
Message:

IPRT/xml: Having another go at the PFNEXTERNALENTITYLOADER declaration to make it work for VC++ in c++17 mode. (noexcept/c++17)

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/cpp/xml.h

    r93115 r95109  
    364364
    365365
    366 #if RT_CLANG_PREREQ(4, 0) /* VC++ needs the nothrow'ed-ness, while clang barfs at it. */
    367 typedef xmlParserInput *FNEXTERNALENTITYLOADER(const char *aURI, const char *aID, xmlParserCtxt *aCtxt);
    368 #else
    369366typedef DECLCALLBACKTYPE_EX(xmlParserInput *, RT_NOTHING, FNEXTERNALENTITYLOADER,(const char *aURI, const char *aID,
    370367                                                                                  xmlParserCtxt *aCtxt));
    371 #endif
    372 typedef FNEXTERNALENTITYLOADER *PFNEXTERNALENTITYLOADER; /**< xmlExternalEntityLoader */
     368typedef FNEXTERNALENTITYLOADER *PFNEXTERNALENTITYLOADER; /**< xmlExternalEntityLoader w/ noexcept. */
    373369
    374370class RT_DECL_CLASS GlobalLock
  • trunk/src/VBox/Runtime/r3/xml.cpp

    r93115 r95109  
    427427void GlobalLock::setExternalEntityLoader(PFNEXTERNALENTITYLOADER pfnLoader)
    428428{
    429     m->pfnOldLoader = xmlGetExternalEntityLoader();
     429    m->pfnOldLoader = (PFNEXTERNALENTITYLOADER)xmlGetExternalEntityLoader();
    430430    xmlSetExternalEntityLoader(pfnLoader);
    431431}
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