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 dd8da46f3..eeb1d657e 100644
--- a/src/localconsts.h
+++ b/src/localconsts.h
@@ -160,9 +160,17 @@
#define PRAGMA6(str)
#endif // ADVGCC
+#ifdef __clang__
+#define PRAGMACLANG(str) _Pragma(#str)
+#else // __clang__
+#define PRAGMACLANG(str)
+#endif // __clang__
+
#ifdef __GNUC__
#if GCC_VERSION > 40500
#define PRAGMA45(str) _Pragma(#str)
+#elif defined(__clang__)
+#define PRAGMA45(str) _Pragma(#str)
#else // GCC_VERSION > 40400
#define PRAGMA45(str)
#endif // GCC_VERSION > 40400