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:
parent
d693f8a2f4
commit
b4131def9f
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue