summaryrefslogtreecommitdiff
path: root/src/localconsts.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-04-30 17:49:50 +0300
committerAndrei Karas <akaras@inbox.ru>2016-04-30 17:49:50 +0300
commita344b0036c91ae0b9591803a0e18356bf8f37697 (patch)
tree504b8d013230bd285cc2c8ce96194a82b268a072 /src/localconsts.h
parent9e9a269cc0548f017b756f4158c957fb1edb894f (diff)
downloadmv-a344b0036c91ae0b9591803a0e18356bf8f37697.tar.gz
mv-a344b0036c91ae0b9591803a0e18356bf8f37697.tar.bz2
mv-a344b0036c91ae0b9591803a0e18356bf8f37697.tar.xz
mv-a344b0036c91ae0b9591803a0e18356bf8f37697.zip
Add macro with pragma for clang with some versions.
Diffstat (limited to 'src/localconsts.h')
-rw-r--r--src/localconsts.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/localconsts.h b/src/localconsts.h
index 881680c93..dc63ad87b 100644
--- a/src/localconsts.h
+++ b/src/localconsts.h
@@ -157,8 +157,14 @@
#ifdef __clang__
#define PRAGMACLANG(str) _Pragma(#str)
+#if __clang_major__ >= 6
+#define PRAGMACLANG6(str) _Pragma(#str)
+#else // __clang_major__ >= 6
+#define PRAGMACLANG6(str)
+#endif // __clang_major__ >= 6
#else // __clang__
#define PRAGMACLANG(str)
+#define PRAGMACLANG6(str)
#endif // __clang__
#ifdef __GNUC__