diff --git a/include/ck_cc.h b/include/ck_cc.h index 98090d9..5fea780 100644 --- a/include/ck_cc.h +++ b/include/ck_cc.h @@ -32,6 +32,12 @@ #include "gcc/ck_cc.h" #endif +#ifndef CK_CC_RESTRICT +#define CK_CC_RESTRICT +#endif + +#define CK_CC_DECONST_PTR(X) ((void *)(uintptr_t)(X)) + /* * Container function. * This relies on (compiler) implementation-defined behavior. diff --git a/include/gcc/ck_cc.h b/include/gcc/ck_cc.h index e504ccb..481a314 100644 --- a/include/gcc/ck_cc.h +++ b/include/gcc/ck_cc.h @@ -57,6 +57,8 @@ #define CK_CC_INLINE CK_CC_UNUSED #endif +#define CK_CC_RESTRICT restrict + /* * Packed attribute. */