diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-12-29 00:52:39 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-12-29 00:52:39 +0300 |
commit | b5ffd5541fabee632acc2979d9dafc84e60aa3d8 (patch) | |
tree | 35ca04e3c6279e28ca337002a2155d7daf30f16f | |
parent | 4bb2d76c5d836c5c1aaea0bd63d2dda99f0e76f6 (diff) | |
download | manaverse-b5ffd5541fabee632acc2979d9dafc84e60aa3d8.tar.gz manaverse-b5ffd5541fabee632acc2979d9dafc84e60aa3d8.tar.bz2 manaverse-b5ffd5541fabee632acc2979d9dafc84e60aa3d8.tar.xz manaverse-b5ffd5541fabee632acc2979d9dafc84e60aa3d8.zip |
Disable restrict keyword in nacl because clang crashing.
-rw-r--r-- | src/localconsts.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/localconsts.h b/src/localconsts.h index 8ff706f4a..3c40ca96c 100644 --- a/src/localconsts.h +++ b/src/localconsts.h @@ -79,12 +79,19 @@ #define A_UNUSED __attribute__ ((unused)) #define A_WARN_UNUSED __attribute__ ((warn_unused_result)) #define DEPRECATED __attribute__ ((deprecated)) + +#ifdef __native_client__ +#define restrict +#define restrict2 +#else // __native_client__ #define restrict __restrict__ #ifdef __clang__ #define restrict2 -#else +#else // __clang__ #define restrict2 __restrict__ -#endif +#endif // __clang__ +#endif // __native_client__ + #ifndef ENABLE_CILKPLUS #define A_CONST __attribute__ ((const)) #define A_PURE __attribute__ ((pure)) |