From 035df67c337416a9e35b68ad3a32e80d0718d060 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 27 Mar 2017 01:35:52 +0300 Subject: Fix compilation with tinyxml2 on old compilers. --- src/localconsts.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src') 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 -- cgit v1.2.3-60-g2f50