summaryrefslogtreecommitdiff
path: root/src/localconsts.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-04-10 14:39:52 +0300
committerAndrei Karas <akaras@inbox.ru>2016-04-10 16:32:22 +0300
commit3504545ff8dc818d08ac9526589b981a9a21c7a6 (patch)
tree13033d4b30c944202ac5d2a737d4a7173089e0ac /src/localconsts.h
parent9715494e4145243feb068a40a6d7e58baca814d1 (diff)
downloadmanaverse-3504545ff8dc818d08ac9526589b981a9a21c7a6.tar.gz
manaverse-3504545ff8dc818d08ac9526589b981a9a21c7a6.tar.bz2
manaverse-3504545ff8dc818d08ac9526589b981a9a21c7a6.tar.xz
manaverse-3504545ff8dc818d08ac9526589b981a9a21c7a6.zip
Add pragma for clang for disable some warnings.
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