aboutsummaryrefslogtreecommitdiff
path: root/include/ck_cc.h
diff options
context:
space:
mode:
authorOlivier Houchard <cognet@FreeBSD.org>2021-10-29 17:01:15 +0000
committerOlivier Houchard <cognet@FreeBSD.org>2021-10-29 17:01:15 +0000
commitce929fe84f9c453263af379f3b255ff8eca01d48 (patch)
treee67b03511733872a7fea5ab703fee973ee18a6d4 /include/ck_cc.h
parent48289654a0ac91e3c29f25461373b3f1b7c82095 (diff)
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]; }