VirtualBox

Changeset 11030 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Jul 31, 2008 3:09:57 PM (16 years ago)
Author:
vboxsync
Message:

iprt/cdefs.h: Don't use throw() unless C++ exceptions are enabled.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/cdefs.h

    r11027 r11030  
    445445 * and the semicolon in function prototypes (and implementation if C++).
    446446 */
    447 #if defined(__cplusplus) && !(defined(IN_RING0) && defined(RT_OS_SOLARIS))
     447#if defined(__cplusplus) \
     448 && (   (defined(_MSC_VER) && defined(_CPPUNWIND)) \
     449     || (defined(__GNUC__) && defined(__EXCEPTIONS)))
    448450# define RT_NO_THROW    throw()
    449451#else
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