From ac1c170b29ac303eb6e3ecdedf96cfdd9936a8d9 Mon Sep 17 00:00:00 2001 From: Michael Haberler Date: Sun, 9 Aug 2015 10:22:25 +0200 Subject: [PATCH] CK_PR_ACCESS: use __typeof__ instead of typeof this makes ck_pr.h safe to include in c++ with -std=c++11 --- include/gcc/ck_pr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/gcc/ck_pr.h b/include/gcc/ck_pr.h index cf6e699..fccb34c 100644 --- a/include/gcc/ck_pr.h +++ b/include/gcc/ck_pr.h @@ -53,7 +53,7 @@ ck_pr_barrier(void) */ #include "ck_f_pr.h" -#define CK_PR_ACCESS(x) (*(volatile typeof(x) *)&(x)) +#define CK_PR_ACCESS(x) (*(volatile __typeof__(x) *)&(x)) #define CK_PR_LOAD(S, M, T) \ CK_CC_INLINE static T \