remove math library specific part of copyright
[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 *
6124b236 7 * @(#)stddef.h 5.4 (Berkeley) %G%
36049238
KB
8 */
9
10#ifndef _STDDEF_H_
11#define _STDDEF_H_
6124b236 12#include <machine/ansi.h>
36049238
KB
13
14typedef _PTRDIFF_T_ ptrdiff_t;
15
16#ifdef _SIZE_T_
17typedef _SIZE_T_ size_t;
18#undef _SIZE_T_
19#endif
20
21#ifdef _WCHAR_T_
22typedef _WCHAR_T_ wchar_t;
23#undef _WCHAR_T_
24#endif
25
26#ifndef NULL
27#define NULL 0
28#endif
29
30#define offsetof(type, member) ((size_t)(&((type *)0)->member))
31
32#endif /* _STDDEF_H_ */