1 #ifndef _STDDEF_H 2 #define _STDDEF_H 3 4 #ifndef _PTRDIFF_T 5 #define _PTRDIFF_T 6 typedef long ptrdiff_t; 7 #endif 8 9 #ifndef _SIZE_T 10 #define _SIZE_T 11 typedef unsigned long size_t; 12 #endif 13 14 #undef NULL 15 #define NULL ((void *)0) 16 17 #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) 18 #endif