2 * stddef.h - common definitions
4 * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
5 * See the copyright notice in the ACK home directory, in the file "Copyright".
7 /* $Id: stddef.h,v 1.9 1994/06/24 11:41:17 ceriel Exp $ */
9 #if !defined(_STDDEF_H)
12 #define NULL ((void *)0)
14 #define offsetof(type, ident) ((size_t) (unsigned long) &((type *)0)->ident)
16 #if _EM_PSIZE == _EM_WSIZE
17 typedef int ptrdiff_t; /* result of substracting two pointers */
18 #elif _EM_PSIZE == _EM_LSIZE
19 typedef long ptrdiff_t; /* result of substracting two pointers */
21 #error garbage pointer size
22 #endif /* _EM_PSIZE */
26 typedef unsigned int size_t; /* type returned by sizeof */
29 #if !defined(_WCHAR_T)
31 typedef char wchar_t; /* type expanded character set */
34 #endif /* _STDDEF_H */