From 61adaf9555e0e730f5ac1e8996923c0abe7f5782 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 30 Apr 2016 15:43:10 +0300 Subject: Fix version check in pragma for gcc 4.5+ --- src/localconsts.h | 6 +++--- 1 file 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__ -- cgit v1.2.3-60-g2f50