summaryrefslogtreecommitdiff
path: root/src/localconsts.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/localconsts.h')
-rw-r--r--src/localconsts.h6
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