summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-03-25 18:52:20 +0300
committerAndrei Karas <akaras@inbox.ru>2016-03-25 18:52:20 +0300
commit6e71645ebfd4cf07d86bd913b0002a3a1a33c1a9 (patch)
treece5a6909ffc8f6d3780e8482c470c716c42fde80 /src
parent82a125b4bf42cdd2f840c0f02bd9ef132c9b996b (diff)
downloadplus-6e71645ebfd4cf07d86bd913b0002a3a1a33c1a9.tar.gz
plus-6e71645ebfd4cf07d86bd913b0002a3a1a33c1a9.tar.bz2
plus-6e71645ebfd4cf07d86bd913b0002a3a1a33c1a9.tar.xz
plus-6e71645ebfd4cf07d86bd913b0002a3a1a33c1a9.zip
Disable __restrict__ parameter because in new clang it broken and always crashing compiler.
Diffstat (limited to 'src')
-rw-r--r--src/localconsts.h5
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__