VirtualBox

Changeset 73904 in vbox for trunk


Ignore:
Timestamp:
Aug 27, 2018 8:53:50 AM (6 years ago)
Author:
vboxsync
Message:

iprt/cdefs.h: Adjust RT_RESERVE for g++ to avoid pedantic warnings.

File:
1 edited

Legend:

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

    r73891 r73904  
    11121112/** @def RT_OVERRIDE
    11131113 * Wrapper for the C++11 override keyword.
     1114 *
     1115 * @remarks Recognized by g++ starting 4.7, however causes pedantic warnings
     1116 *          when used without officially enabling the C++11 features.
    11141117 */
    11151118#ifdef __cplusplus
    1116 # if RT_MSC_PREREQ_EX(RT_MSC_VER_VS2012, 0) || RT_GNUC_PREREQ(4, 7)
     1119# if RT_MSC_PREREQ_EX(RT_MSC_VER_VS2012, 0)
    11171120#  define RT_OVERRIDE           override
     1121# elif RT_GNUC_PREREQ(4, 7)
     1122#  if __cplusplus >= 201100
     1123#   define RT_OVERRIDE          override
     1124#  else
     1125#   define RT_OVERRIDE
     1126#  endif
    11181127# else
    11191128#  define RT_OVERRIDE
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