diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-04-30 15:43:10 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-04-30 15:43:10 +0300 |
commit | 61adaf9555e0e730f5ac1e8996923c0abe7f5782 (patch) | |
tree | f5bc19aa9b578e4b665b893f6a6c74f748948bc5 | |
parent | d33a06e189b09040ace46a1dfc292bc77a9d8440 (diff) | |
download | manaplus-61adaf9555e0e730f5ac1e8996923c0abe7f5782.tar.gz manaplus-61adaf9555e0e730f5ac1e8996923c0abe7f5782.tar.bz2 manaplus-61adaf9555e0e730f5ac1e8996923c0abe7f5782.tar.xz manaplus-61adaf9555e0e730f5ac1e8996923c0abe7f5782.zip |
Fix version check in pragma for gcc 4.5+
-rw-r--r-- | src/localconsts.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/localconsts.h b/src/localconsts.h index 4f5358763..881680c93 100644 --- a/src/localconsts.h +++ b/src/localconsts.h @@ -162,13 +162,13 @@ #endif // __clang__ #ifdef __GNUC__ -#if GCC_VERSION > 40500 +#if GCC_VERSION >= 40600 #define PRAGMA45(str) _Pragma(#str) #elif defined(__clang__) #define PRAGMA45(str) _Pragma(#str) -#else // GCC_VERSION > 40400 +#else // GCC_VERSION > 40600 #define PRAGMA45(str) -#endif // GCC_VERSION > 40400 +#endif // GCC_VERSION > 40600 #endif // __GNUC__ #ifdef __GNUC__ |