diff options
Diffstat (limited to 'include/libk/container_of.h')
-rw-r--r-- | include/libk/container_of.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/include/libk/container_of.h b/include/libk/container_of.h deleted file mode 100644 index fdc400c..0000000 --- a/include/libk/container_of.h +++ /dev/null @@ -1,10 +0,0 @@ -#ifndef LIBK_CONTAINER_OF_H -#define LIBK_CONTAINER_OF_H - -#ifndef container_of -#define container_of(ptr, type, member) ({ \ - const typeof(((type*)0)->member)*__mptr = (ptr); \ - (type*)((char*)__mptr - offsetof(type, member)); }) -#endif - -#endif |