summaryrefslogtreecommitdiff
path: root/src/localconsts.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/localconsts.h')
-rw-r--r--src/localconsts.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/localconsts.h b/src/localconsts.h
index 09e0eae8b..82cbcbb25 100644
--- a/src/localconsts.h
+++ b/src/localconsts.h
@@ -156,7 +156,14 @@
#define const2
#define PRAGMA6(str)
#endif // ADVGCC
-#define PRAGMA(str) _Pragma(str)
+
+#ifdef __GNUC__
+#if GCC_VERSION > 40500
+#define PRAGMA45(str) _Pragma(str)
+#else // GCC_VERSION > 40400
+#define PRAGMA45(str)
+#endif // GCC_VERSION > 40400
+#endif // __GNUC__
#ifdef __GNUC__
#ifdef ENABLE_CILKPLUS