From abc334f8e88253e5393e27594c07cc56525b4e9a Mon Sep 17 00:00:00 2001
From: Andrei Karas <akaras@inbox.ru>
Date: Sat, 29 Sep 2012 23:59:41 +0300
Subject: Fix compilation with gcc 4.6

---
 src/localconsts.h | 7 +++++++
 1 file changed, 7 insertions(+)

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
-- 
cgit v1.2.3-70-g09d2