From b5ffd5541fabee632acc2979d9dafc84e60aa3d8 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 29 Dec 2015 00:52:39 +0300 Subject: Disable restrict keyword in nacl because clang crashing. --- src/localconsts.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/localconsts.h') 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)) -- cgit v1.2.3-60-g2f50