diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-02-23 15:43:15 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-02-23 15:43:33 +0300 |
commit | e252f8d84e9b9c69bc02c128be5141407e928117 (patch) | |
tree | f42c3865f9aaecac710c029dcc8976887aa38d82 /src/localconsts.h | |
parent | 00d118d22446b52fd7453d934869996b32693c71 (diff) | |
download | mv-e252f8d84e9b9c69bc02c128be5141407e928117.tar.gz mv-e252f8d84e9b9c69bc02c128be5141407e928117.tar.bz2 mv-e252f8d84e9b9c69bc02c128be5141407e928117.tar.xz mv-e252f8d84e9b9c69bc02c128be5141407e928117.zip |
Fix compilation with gcc 4.4 or older.
Diffstat (limited to 'src/localconsts.h')
-rw-r--r-- | src/localconsts.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/localconsts.h b/src/localconsts.h index 09e0eae8b..82cbcbb25 100644 --- a/src/localconsts.h +++ b/src/localconsts.h @@ -156,7 +156,14 @@ #define const2 #define PRAGMA6(str) #endif // ADVGCC -#define PRAGMA(str) _Pragma(str) + +#ifdef __GNUC__ +#if GCC_VERSION > 40500 +#define PRAGMA45(str) _Pragma(str) +#else // GCC_VERSION > 40400 +#define PRAGMA45(str) +#endif // GCC_VERSION > 40400 +#endif // __GNUC__ #ifdef __GNUC__ #ifdef ENABLE_CILKPLUS |