VirtualBox

Changeset 60077 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Mar 17, 2016 2:04:35 PM (9 years ago)
Author:
vboxsync
Message:

introduced RT_GNUC_PREREQ

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/com/array.h

    r58110 r60077  
    167167#endif
    168168
    169         /* Type traits are a C++ 11 feature, so not available everywhere (yet). */
    170         /* Only GCC 4.6 or newer. */
    171 #if    (defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__) >= 406) \
    172        /* Only MSVC++ 16.0 (Visual Studio 2010) or newer. */           \
    173     || (defined(_MSC_VER) && (_MSC_VER >= 1600))
    174     #define VBOX_WITH_TYPE_TRAITS
     169 /* Type traits are a C++ 11 feature, so not available everywhere (yet).
     170  * Only GCC 4.6 or newer and MSVC++ 16.0 (Visual Studio 2010) or newer. */
     171#if RT_GNUC_PREREQ(4, 6) || (defined(_MSC_VER) && (_MSC_VER >= 1600))
     172# define VBOX_WITH_TYPE_TRAITS
    175173#endif
    176174
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