summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-29 23:59:41 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-29 23:59:41 +0300
commitabc334f8e88253e5393e27594c07cc56525b4e9a (patch)
tree77fec68814f10c7f20a07e6c7145211af8d11732
parent021da8529f1b3b4cf17b07453e2953e4c4d65478 (diff)
downloadplus-abc334f8e88253e5393e27594c07cc56525b4e9a.tar.gz
plus-abc334f8e88253e5393e27594c07cc56525b4e9a.tar.bz2
plus-abc334f8e88253e5393e27594c07cc56525b4e9a.tar.xz
plus-abc334f8e88253e5393e27594c07cc56525b4e9a.zip
Fix compilation with gcc 4.6v1.2.9.30
-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