VirtualBox

Changeset 11030

Show
Ignore:
Timestamp:
07/31/08 17:09:57 (4 months ago)
Author:
vboxsync
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 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 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy