diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-03-27 01:35:52 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-03-27 01:35:52 +0300 |
commit | 035df67c337416a9e35b68ad3a32e80d0718d060 (patch) | |
tree | afe8ddaba6655ad15610cabcedb9154fe393361f | |
parent | 23f7d1d7721e212789e9a06e84877cd6465ab593 (diff) | |
download | plus-035df67c337416a9e35b68ad3a32e80d0718d060.tar.gz plus-035df67c337416a9e35b68ad3a32e80d0718d060.tar.bz2 plus-035df67c337416a9e35b68ad3a32e80d0718d060.tar.xz plus-035df67c337416a9e35b68ad3a32e80d0718d060.zip |
Fix compilation with tinyxml2 on old compilers.
-rw-r--r-- | src/localconsts.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/localconsts.h b/src/localconsts.h index 6be9d0eaa..61bd0aab9 100644 --- a/src/localconsts.h +++ b/src/localconsts.h @@ -197,12 +197,6 @@ #define const2 const -#if GCC_VERSION >= 49000 -#define PRAGMA49(str) _Pragma(#str) -#else // GCC_VERSION > 49000 -#define PRAGMA49(str) -#endif // GCC_VERSION > 49000 - #if GCC_VERSION >= 60000 #define PRAGMA6(str) _Pragma(#str) #else // GCC_VERSION > 60000 @@ -221,6 +215,12 @@ #define A_FALLTHROUGH #endif // ADVGCC +#if GCC_VERSION >= 49000 +#define PRAGMA49(str) _Pragma(#str) +#else // GCC_VERSION > 49000 +#define PRAGMA49(str) +#endif // GCC_VERSION > 49000 + #ifdef __clang__ #define PRAGMACLANG(str) _Pragma(#str) #if CLANG_VERSION >= 30800 |