CK_PR_ACCESS: use __typeof__ instead of typeof

this makes ck_pr.h safe to include in c++ with -std=c++11
ck_pring
Michael Haberler 9 years ago
parent 1c3501a524
commit ac1c170b29

@ -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 \

Loading…
Cancel
Save