aboutsummaryrefslogtreecommitdiff
path: root/stddef.h
diff options
context:
space:
mode:
Diffstat (limited to 'stddef.h')
-rw-r--r--stddef.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/stddef.h b/stddef.h
index 5e7a867..f83db26 100644
--- a/stddef.h
+++ b/stddef.h
@@ -1,9 +1,10 @@
#ifndef _STDDEF_H
#define _STDDEF_H
-/* TCC include file */
#define NULL ((void *)0)
typedef unsigned int size_t;
typedef int wchar_t;
+typedef int ptrdiff_t;
+#define offsetof(type, field) ((size_t) &((type *)0)->field)
#endif