diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-12-22 19:34:26 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-12-22 20:17:57 +0300 |
commit | e2c087adf039e9303a945cbd1a72a7cb7b0d8cc6 (patch) | |
tree | caff97bc5c7f98d12a14d8938c00a5db2114c970 /src/localconsts.h | |
parent | 2da94c63be0dd5ff21442ffdf594d8862ac2c656 (diff) | |
download | manaverse-e2c087adf039e9303a945cbd1a72a7cb7b0d8cc6.tar.gz manaverse-e2c087adf039e9303a945cbd1a72a7cb7b0d8cc6.tar.bz2 manaverse-e2c087adf039e9303a945cbd1a72a7cb7b0d8cc6.tar.xz manaverse-e2c087adf039e9303a945cbd1a72a7cb7b0d8cc6.zip |
Fix compilation with old gcc.
Diffstat (limited to 'src/localconsts.h')
-rw-r--r-- | src/localconsts.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/localconsts.h b/src/localconsts.h index 544b85a02..d237d93eb 100644 --- a/src/localconsts.h +++ b/src/localconsts.h @@ -139,9 +139,11 @@ #endif // ENABLE_CILKPLUS #ifdef __x86_64__ -#ifndef __clang__ +#if !defined(__clang__) && defined(__GNUC__) +#if GCC_VERSION >= 40700 #define SIMD_SUPPORTED -#endif // __clang__ +#endif // GCC_VERSION > 40700 +#endif // !defined(__clang__) && defined(__GNUC__) #endif // __x86_64__ #ifdef SIMD_SUPPORTED |