diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-03-25 18:52:20 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-03-25 18:52:20 +0300 |
commit | 6e71645ebfd4cf07d86bd913b0002a3a1a33c1a9 (patch) | |
tree | ce5a6909ffc8f6d3780e8482c470c716c42fde80 /src | |
parent | 82a125b4bf42cdd2f840c0f02bd9ef132c9b996b (diff) | |
download | manaverse-6e71645ebfd4cf07d86bd913b0002a3a1a33c1a9.tar.gz manaverse-6e71645ebfd4cf07d86bd913b0002a3a1a33c1a9.tar.bz2 manaverse-6e71645ebfd4cf07d86bd913b0002a3a1a33c1a9.tar.xz manaverse-6e71645ebfd4cf07d86bd913b0002a3a1a33c1a9.zip |
Disable __restrict__ parameter because in new clang it broken and always crashing compiler.
Diffstat (limited to 'src')
-rw-r--r-- | src/localconsts.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/localconsts.h b/src/localconsts.h index 6c52bf0e1..b5ca05e04 100644 --- a/src/localconsts.h +++ b/src/localconsts.h @@ -93,10 +93,13 @@ #define restrict #define restrict2 #else // __native_client__ -#define restrict __restrict__ #ifdef __clang__ +// because restrict broken in clang, now it removed from all places. +//#define restrict __restrict__ +#define restrict #define restrict2 #else // __clang__ +#define restrict __restrict__ #define restrict2 __restrict__ #endif // __clang__ #endif // __native_client__ |