X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=includes%2Fstddef.h;h=32bfb329bec664f3633838455d1f3d1e8a4edb24;hb=e794d9887cd8f94befd7861e39eccf46666c89fe;hp=2147696986334d4dfa05274be8497f82eaece197;hpb=3f035390c831709593428e88bb1c640604434d60;p=pdclib.old diff --git a/includes/stddef.h b/includes/stddef.h index 2147696..32bfb32 100644 --- a/includes/stddef.h +++ b/includes/stddef.h @@ -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