From a602d5c2460b197866028cfb3d2aa2b7b3aea80c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 24 Dec 2015 18:26:21 +0300 Subject: Add macro restrict2. --- src/localconsts.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/localconsts.h') 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 -- cgit v1.2.3-60-g2f50