diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-07-26 13:14:56 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-07-26 13:14:56 +0300 |
commit | 2579a2ef480bb2f85f050d1344b503b8cd899575 (patch) | |
tree | fce75dbe37535e734d8091d7982d49b812904c30 /src/localconsts.h | |
parent | ef9a3a6b34fea6c64bcb5bbabe08f69c32828857 (diff) | |
download | manaplus-2579a2ef480bb2f85f050d1344b503b8cd899575.tar.gz manaplus-2579a2ef480bb2f85f050d1344b503b8cd899575.tar.bz2 manaplus-2579a2ef480bb2f85f050d1344b503b8cd899575.tar.xz manaplus-2579a2ef480bb2f85f050d1344b503b8cd899575.zip |
Add macro constexpr2. Depend on compiler and version it can be constexpr or empty line.
This need for compilers with advanced constexpr support.
Diffstat (limited to 'src/localconsts.h')
-rw-r--r-- | src/localconsts.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/localconsts.h b/src/localconsts.h index f54ae5659..5d73f8c53 100644 --- a/src/localconsts.h +++ b/src/localconsts.h @@ -43,6 +43,7 @@ #define final #define override #define constexpr +#define constexpr2 #define noexcept #define A_DELETE(func) #define A_DELETE_COPY(func) @@ -56,6 +57,11 @@ // #define A_DELETE_COPY #else #define ADVGCC +#if GCC_VERSION < 40900 +#define constexpr2 +#else +#define constexpr2 constexpr +#endif #endif #undef Z_NULL #define Z_NULL nullptr |