summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-05-21 02:09:05 -0400
committermidipix <writeonce@midipix.org>2018-05-21 02:23:31 -0400
commitcf5fffd1b524ab3d97770599c8321f4efa0fc2de (patch)
treec4cd5eea51f71498333b30273472ded845a61b37
parentf3d5e0453751c9d4bcaa62259637901d8b59285a (diff)
downloadntux-cf5fffd1b524ab3d97770599c8321f4efa0fc2de.tar.bz2
ntux-cf5fffd1b524ab3d97770599c8321f4efa0fc2de.tar.xz
internals: nolibc: stddef.h: use the __offsetof macro from psxtypes.
-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