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 4039fc54b..8e0a24bf7 100644
--- a/src/localconsts.h
+++ b/src/localconsts.h
@@ -252,6 +252,14 @@
#else // GCC_VERSION > 40600
#define PRAGMA45(str)
#endif // GCC_VERSION > 40600
+
+#if GCC_VERSION >= 40000
+#define PRAGMA4(str) _Pragma(#str)
+#elif defined(__clang__)
+#define PRAGMA4(str) _Pragma(#str)
+#else // GCC_VERSION > 40000
+#define PRAGMA4(str)
+#endif // GCC_VERSION > 40000
#endif // __GNUC__
#ifdef __GNUC__