diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/internal/nolibc/stddef.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/internal/nolibc/stddef.h b/src/internal/nolibc/stddef.h index 8288bae..1027d3e 100644 --- a/src/internal/nolibc/stddef.h +++ b/src/internal/nolibc/stddef.h @@ -1,6 +1,6 @@ #ifndef _STDDEF_H #define _STDDEF_H -#define offsetof(type, member) ((size_t)( (char *)&(((type *)0)->member) - (char *)0 )) +#define offsetof(type, member) __offsetof(type, member) #endif |