summaryrefslogtreecommitdiff
path: root/src/localconsts.h
diff options
context:
space:
mode:
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 881680c93..dc63ad87b 100644
--- a/src/localconsts.h
+++ b/src/localconsts.h
@@ -157,8 +157,14 @@
#ifdef __clang__
#define PRAGMACLANG(str) _Pragma(#str)
+#if __clang_major__ >= 6
+#define PRAGMACLANG6(str) _Pragma(#str)
+#else // __clang_major__ >= 6
+#define PRAGMACLANG6(str)
+#endif // __clang_major__ >= 6
#else // __clang__
#define PRAGMACLANG(str)
+#define PRAGMACLANG6(str)
#endif // __clang__
#ifdef __GNUC__