summaryrefslogtreecommitdiff
path: root/src/localconsts.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-05-19 17:12:14 +0300
committerAndrei Karas <akaras@inbox.ru>2017-05-19 18:39:45 +0300
commit886794b8a1ff563f9d5c9952935a9b330b652a14 (patch)
tree96f10f7473bdf3efd1d9fb74a28fb1fd31582fb5 /src/localconsts.h
parenta407b7c3660628cb3a6b96b3f5e61bb59c9958d2 (diff)
downloadplus-886794b8a1ff563f9d5c9952935a9b330b652a14.tar.gz
plus-886794b8a1ff563f9d5c9952935a9b330b652a14.tar.bz2
plus-886794b8a1ff563f9d5c9952935a9b330b652a14.tar.xz
plus-886794b8a1ff563f9d5c9952935a9b330b652a14.zip
Fix some warnings in unit tests.
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__