summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/localconsts.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/localconsts.h b/src/localconsts.h
index 02815d521..947099668 100644
--- a/src/localconsts.h
+++ b/src/localconsts.h
@@ -24,6 +24,13 @@
#define final
#define override
#else
+#define GCC_VERSION (__GNUC__ * 10000 \
+ + __GNUC_MINOR__ * 100 \
+ + __GNUC_PATCHLEVEL__)
+#if GCC_VERSION < 40700
+#define final
+#define override
+#endif
#undef Z_NULL
#define Z_NULL nullptr
#endif