diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-05-19 17:12:14 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-05-19 18:39:45 +0300 |
commit | 886794b8a1ff563f9d5c9952935a9b330b652a14 (patch) | |
tree | 96f10f7473bdf3efd1d9fb74a28fb1fd31582fb5 /src/localconsts.h | |
parent | a407b7c3660628cb3a6b96b3f5e61bb59c9958d2 (diff) | |
download | manaplus-886794b8a1ff563f9d5c9952935a9b330b652a14.tar.gz manaplus-886794b8a1ff563f9d5c9952935a9b330b652a14.tar.bz2 manaplus-886794b8a1ff563f9d5c9952935a9b330b652a14.tar.xz manaplus-886794b8a1ff563f9d5c9952935a9b330b652a14.zip |
Fix some warnings in unit tests.
Diffstat (limited to 'src/localconsts.h')
-rw-r--r-- | src/localconsts.h | 8 |
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__ |