VirtualBox

Changeset 57430 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Aug 18, 2015 2:37:20 PM (9 years ago)
Author:
vboxsync
Message:

iprt/cdefs.h: Attempt at fixing lnx32-rel build problem in the NAT daemon.

File:
1 edited

Legend:

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

    r57336 r57430  
    882882 * to catch any of them. Put this between the closing parenthesis
    883883 * and the semicolon in function prototypes (and implementation if C++).
     884 *
     885 * @remarks The use of the nothrow attribute with GCC is because old compilers
     886 *          (4.1.1, 32-bit) leaking the nothrow into global space or something
     887 *          when used with RTDECL or similar.
    884888 */
    885889#ifdef RT_EXCEPTIONS_ENABLED
    886 # define RT_NO_THROW            throw()
     890# ifdef __GNUC__
     891#  define RT_NO_THROW           __attribute__((nothrow))
     892# else
     893#  define RT_NO_THROW           throw()
     894# endif
    887895#else
    888896# define RT_NO_THROW
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