added tentative offsetof macro
This commit is contained in:
parent
645963e2b8
commit
25658c7690
1 changed files with 2 additions and 0 deletions
|
@ -19,4 +19,6 @@
|
||||||
#include <types/size_t.h>
|
#include <types/size_t.h>
|
||||||
#include <types/wchar_t.h>
|
#include <types/wchar_t.h>
|
||||||
|
|
||||||
|
#define offsetof(type, member) (size_t)(&((type *)0->member))
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue