From ce929fe84f9c453263af379f3b255ff8eca01d48 Mon Sep 17 00:00:00 2001 From: Olivier Houchard Date: Fri, 29 Oct 2021 19:01:15 +0200 Subject: Import CK as of commit 2265c7846f4ce667f5216456afe2779b23c3e5f7. --- include/ck_cc.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/ck_cc.h') 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]; } -- cgit v1.3