summaryrefslogtreecommitdiffhomepage
path: root/src/internal
diff options
context:
space:
mode:
Diffstat (limited to 'src/internal')
-rw-r--r--src/internal/nolibc/stddef.h2
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