summaryrefslogtreecommitdiff
path: root/ginclude/stddef.h
diff options
context:
space:
mode:
Diffstat (limited to 'ginclude/stddef.h')
-rwxr-xr-xginclude/stddef.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/ginclude/stddef.h b/ginclude/stddef.h
new file mode 100755
index 0000000..6c60d76
--- /dev/null
+++ b/ginclude/stddef.h
@@ -0,0 +1,27 @@
+#ifndef _STDDEF_H
+#define _STDDEF_H
+
+/* Signed type of difference of two pointers. */
+
+typedef long int ptrdiff_t;
+
+/* Unsigned type of `sizeof' something. */
+
+typedef unsigned long int size_t;
+
+/* Wide character type.
+ Locale-writers should change this as necessary to
+ be big enough to hold unique values not between 0 and 127,
+ and not (wchar_t) -1, for each defined multibyte character. */
+
+typedef int wchar_t;
+
+/* A null pointer constant. */
+
+#define NULL ((void *)0)
+
+/* Offset of member MEMBER in a struct of type TYPE. */
+
+#define offsetof(TYPE, MEMBER) ((size_t)&((TYPE *)0)->MEMBER)
+
+#endif /* _STDDEF_H */