summaryrefslogtreecommitdiff
path: root/src/localconsts.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/localconsts.h')
-rw-r--r--src/localconsts.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/localconsts.h b/src/localconsts.h
index 9928a8f1d..2a3cf5ea7 100644
--- a/src/localconsts.h
+++ b/src/localconsts.h
@@ -236,6 +236,14 @@
#define CLANG_FALLTHROUGH
#endif // __clang__
+#if GCC_VERSION >= 40000
+#define PRAGMACLANG6GCC(str) _Pragma(#str)
+#elif defined(__clang__) && CLANG_VERSION >= 30800
+#define PRAGMACLANG6GCC(str) _Pragma(#str)
+#else // __clang__
+#define PRAGMACLANG6GCC(str)
+#endif // __clang__
+
#ifdef __GNUC__
#if GCC_VERSION >= 40600
#define PRAGMA45(str) _Pragma(#str)