xref: /original-bsd/include/stddef.h (revision 135ce860)
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.6 (Berkeley) 06/22/92
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 #undef	_BSD_WCHAR_T_
25 #endif
26 
27 #ifndef	NULL
28 #define	NULL	0
29 #endif
30 
31 #define	offsetof(type, member)	((size_t)(&((type *)0)->member))
32 
33 #endif /* _STDDEF_H_ */
34