From bc594bf8093b5e6316c0312433a8ff2905d1fe4f Mon Sep 17 00:00:00 2001 From: alfredo Date: Tue, 23 Aug 2016 20:25:28 -0400 Subject: [PATCH] use __restrict__ under GCC to support both C++ and C --- include/gcc/ck_cc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/gcc/ck_cc.h b/include/gcc/ck_cc.h index 6806130..a14a4b5 100644 --- a/include/gcc/ck_cc.h +++ b/include/gcc/ck_cc.h @@ -55,7 +55,7 @@ #endif #define CK_CC_FORCE_INLINE CK_CC_UNUSED __attribute__((always_inline)) inline -#define CK_CC_RESTRICT restrict +#define CK_CC_RESTRICT __restrict__ /* * Packed attribute.