12 #include <bitsize/stddef.h>
18 # define NULL ((void *)0)
22 #define offsetof(t,m) ((size_t)&((t *)0)->m)
26 * The container_of construct: if p is a pointer to member m of
27 * container class c, then return a pointer to the container of which
30 #define container_of(p, c, m) ((c *)((char *)(p) - offsetof(c,m)))
32 #endif /* _STDDEF_H */