summaryrefslogtreecommitdiff
path: root/src/localconsts.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-05-07 02:18:30 +0300
committerAndrei Karas <akaras@inbox.ru>2017-05-07 02:18:30 +0300
commite41d5dee07d1778d53e098de6862fe865798d5fb (patch)
tree9a9de2a0d1293b700f728d98b5e82e9ece658796 /src/localconsts.h
parentbd530fb98a1b3b8406396a6b8bc0823bf211f72d (diff)
downloadmv-e41d5dee07d1778d53e098de6862fe865798d5fb.tar.gz
mv-e41d5dee07d1778d53e098de6862fe865798d5fb.tar.bz2
mv-e41d5dee07d1778d53e098de6862fe865798d5fb.tar.xz
mv-e41d5dee07d1778d53e098de6862fe865798d5fb.zip
Add possible SDL warning fix with gcc snapshot.
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 9928a8f1d..2a3cf5ea7 100644
--- a/src/localconsts.h
+++ b/src/localconsts.h
@@ -236,6 +236,14 @@
#define CLANG_FALLTHROUGH
#endif // __clang__
+#if GCC_VERSION >= 40000
+#define PRAGMACLANG6GCC(str) _Pragma(#str)
+#elif defined(__clang__) && CLANG_VERSION >= 30800
+#define PRAGMACLANG6GCC(str) _Pragma(#str)
+#else // __clang__
+#define PRAGMACLANG6GCC(str)
+#endif // __clang__
+
#ifdef __GNUC__
#if GCC_VERSION >= 40600
#define PRAGMA45(str) _Pragma(#str)