diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-07-26 14:31:14 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-07-26 14:31:14 +0300 |
commit | b29f6896196376a6b3c2abf60de766811264af75 (patch) | |
tree | a5f82105645e266870c09f9a6ecdbee888fb8fed | |
parent | 2579a2ef480bb2f85f050d1344b503b8cd899575 (diff) | |
download | manaplus-b29f6896196376a6b3c2abf60de766811264af75.tar.gz manaplus-b29f6896196376a6b3c2abf60de766811264af75.tar.bz2 manaplus-b29f6896196376a6b3c2abf60de766811264af75.tar.xz manaplus-b29f6896196376a6b3c2abf60de766811264af75.zip |
Fix compiler features detection.
-rw-r--r-- | src/localconsts.h | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/localconsts.h b/src/localconsts.h index 5d73f8c53..560e5f152 100644 --- a/src/localconsts.h +++ b/src/localconsts.h @@ -47,7 +47,7 @@ #define noexcept #define A_DELETE(func) #define A_DELETE_COPY(func) -#else +#else // !defined(__GXX_EXPERIMENTAL_CXX0X__) #if GCC_VERSION < 40700 #define final #define override @@ -55,21 +55,25 @@ #define noexcept // #define A_DELETE // #define A_DELETE_COPY -#else +#else // GCC_VERSION < 40700 #define ADVGCC #if GCC_VERSION < 40900 #define constexpr2 -#else +#else // GCC_VERSION < 40900 +#if __cpp_constexpr > 201309 #define constexpr2 constexpr -#endif -#endif +#else // __cpp_constexpr > 201309 +#define constexpr2 +#endif // __cpp_constexpr > 201309 +#endif // GCC_VERSION < 40900 +#endif // GCC_VERSION < 40700 #undef Z_NULL #define Z_NULL nullptr #define M_TCPOK #define A_DELETE(func) func = delete #define A_DELETE_COPY(name) name(const name &) = delete; \ name &operator=(const name&) = delete; -#endif +#endif // !defined(__GXX_EXPERIMENTAL_CXX0X__) #ifdef __GNUC__ #define A_UNUSED __attribute__ ((unused)) |