diff options
Diffstat (limited to 'include/stddef.h')
| -rw-r--r-- | include/stddef.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/stddef.h b/include/stddef.h index 5ebdf7a..ffcf225 100644 --- a/include/stddef.h +++ b/include/stddef.h @@ -7,9 +7,10 @@ typedef unsigned long size_t; typedef int wchar_t; typedef long ptrdiff_t; +#define offsetof(T, m) (ptrdiff_t)((void*)((T*)0)->m) + // TODO: // - max_align_t (C11) // - nullptr_t (C23) -// - offsetof #endif |
