1 /*- 2 * Copyright (c) 1990 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * %sccs.include.redist.c% 6 * 7 * @(#)stddef.h 5.7 (Berkeley) 05/26/93 8 */ 9 10 #ifndef _STDDEF_H_ 11 #define _STDDEF_H_ 12 13 #include <machine/ansi.h> 14 15 typedef _BSD_PTRDIFF_T_ ptrdiff_t; 16 17 #ifdef _BSD_SIZE_T_ 18 typedef _BSD_SIZE_T_ size_t; 19 #undef _BSD_SIZE_T_ 20 #endif 21 22 #ifdef _BSD_WCHAR_T_ 23 typedef _BSD_WCHAR_T_ wchar_t; 24 typedef _BSD_WCHAR_T_ rune_t; 25 #undef _BSD_WCHAR_T_ 26 #endif 27 28 #ifndef NULL 29 #define NULL 0 30 #endif 31 32 #define offsetof(type, member) ((size_t)(&((type *)0)->member)) 33 34 #endif /* _STDDEF_H_ */ 35