summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-12-24 18:26:21 +0300
committerAndrei Karas <akaras@inbox.ru>2015-12-24 18:26:21 +0300
commita602d5c2460b197866028cfb3d2aa2b7b3aea80c (patch)
treed5d1abdd32033599ecd47b96d6b1f3580d17f338
parent046fb273066f538da94ae488f02d43665d9a39c5 (diff)
downloadplus-a602d5c2460b197866028cfb3d2aa2b7b3aea80c.tar.gz
plus-a602d5c2460b197866028cfb3d2aa2b7b3aea80c.tar.bz2
plus-a602d5c2460b197866028cfb3d2aa2b7b3aea80c.tar.xz
plus-a602d5c2460b197866028cfb3d2aa2b7b3aea80c.zip
Add macro restrict2.
-rw-r--r--src/localconsts.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/localconsts.h b/src/localconsts.h
index c691abd26..b0ab4ff3c 100644
--- a/src/localconsts.h
+++ b/src/localconsts.h
@@ -80,6 +80,11 @@
#define A_WARN_UNUSED __attribute__ ((warn_unused_result))
#define DEPRECATED __attribute__ ((deprecated))
#define restrict __restrict__
+#ifdef __clang__
+#define restrict2
+#else
+#define restrict2 __restrict__
+#endif
#define A_CONST __attribute__ ((const))
#define A_PURE __attribute__ ((pure))
@@ -105,6 +110,7 @@
#define gnu_printf printf
#define DEPRECATED
#define restrict
+#define restrict2
#define RETURNS_NONNULL
#define A_NONNULL(...)
#endif