00001
00002
00003 #ifndef _STDDEF_H
00004 #define _STDDEF_H
00005
00006 #define NULL ((void *)0)
00007
00008
00009 #define offsetof(type, ident) ((size_t) (unsigned long) &((type *)0)->ident)
00010
00011 #if _EM_PSIZE == _EM_WSIZE
00012 typedef int ptrdiff_t;
00013 #else
00014 typedef long ptrdiff_t;
00015 #endif
00016
00017 #ifndef _SIZE_T
00018 #define _SIZE_T
00019 typedef unsigned int size_t;
00020 #endif
00021
00022 #ifndef _WCHAR_T
00023 #define _WCHAR_T
00024 typedef char wchar_t;
00025 #endif
00026
00027 #endif