summaryrefslogtreecommitdiff
path: root/libc/include/stddef.h
diff options
context:
space:
mode:
Diffstat (limited to 'libc/include/stddef.h')
-rw-r--r--libc/include/stddef.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/libc/include/stddef.h b/libc/include/stddef.h
new file mode 100644
index 0000000..f21f683
--- /dev/null
+++ b/libc/include/stddef.h
@@ -0,0 +1,26 @@
+/* Copyright (C) 1996 Robert de Bath <rdebath@cix.compulink.co.uk>
+ * This file is part of the Linux-8086 C library and is distributed
+ * under the GNU Library General Public License.
+ */
+/* We don't care, ignore GCC's __need hackery */
+
+#undef __need_wchar_t
+#undef __need_size_t
+#undef __need_ptrdiff_t
+#undef __need_NULL
+
+#if __AS386_16__ /* Only for 8086 */
+#ifndef __STDDEF_H
+#define __STDDEF_H
+
+#ifndef _SIZE_T
+#define _SIZE_T
+typedef unsigned int size_t;
+#endif
+
+#ifndef NULL
+#define NULL 0
+#endif
+
+#endif /* __STDDEF_H */
+#endif /* __AS386_16__ */