diff options
author | midipix <writeonce@midipix.org> | 2018-05-21 02:09:05 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2018-05-21 02:23:31 -0400 |
commit | cf5fffd1b524ab3d97770599c8321f4efa0fc2de (patch) | |
tree | c4cd5eea51f71498333b30273472ded845a61b37 /src/internal | |
parent | f3d5e0453751c9d4bcaa62259637901d8b59285a (diff) | |
download | ntux-cf5fffd1b524ab3d97770599c8321f4efa0fc2de.tar.bz2 ntux-cf5fffd1b524ab3d97770599c8321f4efa0fc2de.tar.xz |
internals: nolibc: stddef.h: use the __offsetof macro from psxtypes.
Diffstat (limited to 'src/internal')
-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 |