summaryrefslogtreecommitdiff
path: root/unproto/stddef.h
diff options
context:
space:
mode:
Diffstat (limited to 'unproto/stddef.h')
-rw-r--r--unproto/stddef.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/unproto/stddef.h b/unproto/stddef.h
new file mode 100644
index 0000000..97dbc01
--- /dev/null
+++ b/unproto/stddef.h
@@ -0,0 +1,23 @@
+/* @(#) stddef.h 1.1 92/02/15 17:25:46 */
+
+#ifndef _stddef_h_
+#define _stddef_h_
+
+/* NULL is also defined in <stdio.h> */
+
+#ifndef NULL
+#define NULL 0
+#endif
+
+/* Structure member offset - some compilers barf on this. */
+
+#define offsetof(type, member) ((size_t) &((type *)0)->member)
+
+/* Some of the following types may already be defined in <sys/types.h>. */
+
+/* #include <sys/types.h> */
+/* typedef long ptrdiff_t; /* type of pointer difference */
+/* typedef unsigned short wchar_t; /* wide character type */
+/* typedef unsigned size_t; /* type of sizeof */
+
+#endif /* _stddef_h_ */