summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-12-29 00:52:39 +0300
committerAndrei Karas <akaras@inbox.ru>2015-12-29 00:52:39 +0300
commitb5ffd5541fabee632acc2979d9dafc84e60aa3d8 (patch)
tree35ca04e3c6279e28ca337002a2155d7daf30f16f
parent4bb2d76c5d836c5c1aaea0bd63d2dda99f0e76f6 (diff)
downloadmv-b5ffd5541fabee632acc2979d9dafc84e60aa3d8.tar.gz
mv-b5ffd5541fabee632acc2979d9dafc84e60aa3d8.tar.bz2
mv-b5ffd5541fabee632acc2979d9dafc84e60aa3d8.tar.xz
mv-b5ffd5541fabee632acc2979d9dafc84e60aa3d8.zip
Disable restrict keyword in nacl because clang crashing.
-rw-r--r--src/localconsts.h11
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))