summaryrefslogtreecommitdiff
path: root/05/tcc-0.9.27/stddef.h
diff options
context:
space:
mode:
Diffstat (limited to '05/tcc-0.9.27/stddef.h')
-rw-r--r--05/tcc-0.9.27/stddef.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/05/tcc-0.9.27/stddef.h b/05/tcc-0.9.27/stddef.h
new file mode 100644
index 0000000..f012d95
--- /dev/null
+++ b/05/tcc-0.9.27/stddef.h
@@ -0,0 +1,8 @@
+#ifndef _STDDEF_H
+#define _STDDEF_H
+
+#include <stdc_common.h>
+#define offsetof(struct, member) ((size_t)(&((struct *)NULL)->member))
+// @NONSTANDARD: we don't have wchar_t
+
+#endif // _STDDEF_H