From 7bb78f86f15d05c7aca5566d391784df35e42db0 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 24 Mar 2017 02:19:26 +0300 Subject: Add ignore some compilation options in tinyxml2 include. --- src/localconsts.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/localconsts.h') diff --git a/src/localconsts.h b/src/localconsts.h index 786177138..6be9d0eaa 100644 --- a/src/localconsts.h +++ b/src/localconsts.h @@ -196,11 +196,19 @@ #ifdef ADVGCC #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 #define PRAGMA6(str) #endif // GCC_VERSION > 60000 + #if GCC_VERSION >= 70000 #define A_FALLTHROUGH __attribute__ ((fallthrough)); #else // GCC_VERSION > 70000 -- cgit v1.2.3-60-g2f50