diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-04-30 17:49:50 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-04-30 17:49:50 +0300 |
commit | a344b0036c91ae0b9591803a0e18356bf8f37697 (patch) | |
tree | 504b8d013230bd285cc2c8ce96194a82b268a072 /src/localconsts.h | |
parent | 9e9a269cc0548f017b756f4158c957fb1edb894f (diff) | |
download | manaplus-a344b0036c91ae0b9591803a0e18356bf8f37697.tar.gz manaplus-a344b0036c91ae0b9591803a0e18356bf8f37697.tar.bz2 manaplus-a344b0036c91ae0b9591803a0e18356bf8f37697.tar.xz manaplus-a344b0036c91ae0b9591803a0e18356bf8f37697.zip |
Add macro with pragma for clang with some versions.
Diffstat (limited to 'src/localconsts.h')
-rw-r--r-- | src/localconsts.h | 6 |
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__ |