From 6e71645ebfd4cf07d86bd913b0002a3a1a33c1a9 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 25 Mar 2016 18:52:20 +0300 Subject: Disable __restrict__ parameter because in new clang it broken and always crashing compiler. --- src/localconsts.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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__ -- cgit v1.2.3-70-g09d2