aboutsummaryrefslogtreecommitdiff
path: root/include/ck_cc.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/ck_cc.h')
-rw-r--r--include/ck_cc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ck_cc.h b/include/ck_cc.h
index 9a152a3cddab..1b4ff4635fa6 100644
--- a/include/ck_cc.h
+++ b/include/ck_cc.h
@@ -50,6 +50,7 @@
* Container function.
* This relies on (compiler) implementation-defined behavior.
*/
+#ifndef CK_CC_CONTAINER
#define CK_CC_CONTAINER(F, T, M, N) \
CK_CC_INLINE static T * \
N(F *p) \
@@ -57,6 +58,7 @@
F *n = p; \
return (T *)(void *)(((char *)n) - ((size_t)&((T *)0)->M)); \
}
+#endif
#define CK_CC_PAD(x) union { char pad[x]; }