From 2579a2ef480bb2f85f050d1344b503b8cd899575 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 26 Jul 2015 13:14:56 +0300 Subject: Add macro constexpr2. Depend on compiler and version it can be constexpr or empty line. This need for compilers with advanced constexpr support. --- src/localconsts.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/localconsts.h') 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 -- cgit v1.2.3-60-g2f50