]> pd.if.org Git - pdclib/blobdiff - includes/stddef.h
Some cleanup.
[pdclib] / includes / stddef.h
index 2147696986334d4dfa05274be8497f82eaece197..32bfb329bec664f3633838455d1f3d1e8a4edb24 100644 (file)
@@ -4,12 +4,26 @@
 // Public Domain C Library - http://pdclib.sourceforge.net
 // This code is Public Domain. Use, modify, and redistribute at will.
 // ----------------------------------------------------------------------------
-// TODO
+// Common definitions
 // ----------------------------------------------------------------------------
 
 #ifndef __STDDEF_H
 #define __STDDEF_H __STDDEF_H
 
-// TODO
+// ----------------------------------------------------------------------------
+// MACROS
+
+#define NULL  0
+#define offsetof( s-type, mbr ) // TODO
+
+// ----------------------------------------------------------------------------
+// TYPEDEFS
+
+typedef ptrdiff_t; // TODO
+typedef size_t;    // TODO
+
+#ifndef __cplusplus
+typedef wchar_t;
+#endif // __cplusplus
 
 #endif // __STDDEF_H