1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00

The offsetof macro now expands to __builtin_offsetof.

The compiler knows this stuff best, anyway.
This commit is contained in:
Jonas 'Sortie' Termansen 2012-02-11 19:50:27 +01:00
parent d693f8a2f4
commit b4131def9f

View file

@ -31,7 +31,7 @@ __BEGIN_DECLS
@include(NULL.h) @include(NULL.h)
#define offsetof(type, member) ((size_t) &(type)) - (size_t) (&(member))) #define offsetof(type, member) __builtin_offsetof(type, member)
@include(ptrdiff_t.h) @include(ptrdiff_t.h)