added tentative offsetof macro

This commit is contained in:
Gitea 2020-12-13 05:17:50 -06:00
parent 645963e2b8
commit 25658c7690
1 changed files with 2 additions and 0 deletions

View File

@ -19,4 +19,6 @@
#include <types/size_t.h>
#include <types/wchar_t.h>
#define offsetof(type, member) (size_t)(&((type *)0->member))
#endif