update to reflect mount_nfs being moved out
[unix-history] / usr / src / include / stddef.h
CommitLineData
36049238
KB
1/*-
2 * Copyright (c) 1990 The Regents of the University of California.
3 * All rights reserved.
4 *
5 * %sccs.include.redist.c%
6 *
d2b7358e 7 * @(#)stddef.h 5.5 (Berkeley) %G%
36049238
KB
8 */
9
10#ifndef _STDDEF_H_
11#define _STDDEF_H_
d2b7358e 12
6124b236 13#include <machine/ansi.h>
36049238
KB
14
15typedef _PTRDIFF_T_ ptrdiff_t;
16
17#ifdef _SIZE_T_
18typedef _SIZE_T_ size_t;
19#undef _SIZE_T_
20#endif
21
22#ifdef _WCHAR_T_
23typedef _WCHAR_T_ wchar_t;
24#undef _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_ */