summaryrefslogtreecommitdiff
path: root/src/localconsts.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-15 14:48:23 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-15 14:48:23 +0300
commitcf1e1132c6cd84ab68a065153247671e83bf298f (patch)
treef35d5731ce05df57b375f2648f211bbd9bd6dfdc /src/localconsts.h
parent06a19f3327736f67907f012bd21bb1c0a21bb468 (diff)
downloadmv-cf1e1132c6cd84ab68a065153247671e83bf298f.tar.gz
mv-cf1e1132c6cd84ab68a065153247671e83bf298f.tar.bz2
mv-cf1e1132c6cd84ab68a065153247671e83bf298f.tar.xz
mv-cf1e1132c6cd84ab68a065153247671e83bf298f.zip
Fix compilation issue with old gcc.
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 7cddefdcd..1566292f5 100644
--- a/src/localconsts.h
+++ b/src/localconsts.h
@@ -85,6 +85,12 @@
#include <cilk/cilk.h>
#endif
+#ifdef ADVGCC
+#define const2 const
+#else // ADVGCC
+#define const2
+#endif // ADVGCC
+
#ifdef __GNUC__
#ifdef ENABLE_CILKPLUS
#if GCC_VERSION < 40900