diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2020-04-28 14:06:56 +0200 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2020-04-28 14:06:56 +0200 |
commit | 57bc0064bdf8458b5a4b3dda8ff899fbcfb919c4 (patch) | |
tree | 86ad83b3ecf9870a1f6f09672bc7d30dc46c5a80 /ACE/ace/config-g++-common.h | |
parent | c16e81913032c5584794bae9c075541a2fffbb48 (diff) | |
download | ATCD-57bc0064bdf8458b5a4b3dda8ff899fbcfb919c4.tar.gz |
Compare cplusplus >= to make it easier to determine what is done, no need to check for g++/clang specific releases
* ACE/ace/config-g++-common.h:
Diffstat (limited to 'ACE/ace/config-g++-common.h')
-rw-r--r-- | ACE/ace/config-g++-common.h | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/ACE/ace/config-g++-common.h b/ACE/ace/config-g++-common.h index ba9e73e7366..9bbc68d1d1c 100644 --- a/ACE/ace/config-g++-common.h +++ b/ACE/ace/config-g++-common.h @@ -31,19 +31,17 @@ # define ACE_HAS_NEW_NOTHROW #endif /* __GNUC__ >= 3.3 */ -#if (__GNUC__ >= 5 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 7)) || defined __clang__ -# if __cplusplus > 199711L -# define ACE_HAS_CPP11 -# endif -# if __cplusplus > 201103L -# define ACE_HAS_CPP14 -# endif -# if __cplusplus > 201402L -# define ACE_HAS_CPP17 -# endif -# if __cplusplus > 201703L -# define ACE_HAS_CPP20 -# endif +#if __cplusplus >= 201103L +# define ACE_HAS_CPP11 +#endif +#if __cplusplus >= 201402L +# define ACE_HAS_CPP14 +#endif +#if __cplusplus >= 201703L +# define ACE_HAS_CPP17 +#endif +#if __cplusplus >= 202002L +# define ACE_HAS_CPP20 #endif #if (defined (i386) || defined (__i386__)) && !defined (ACE_SIZEOF_LONG_DOUBLE) |