newer at_wini.c (really incl atapi dma this time)
[minix.git] / include / stddef.h
blobb6ab471d13270022c5a1d299b37a39003b1e2b07
1 /* The <stddef.h> header defines certain commonly used macros. */
3 #ifndef _STDDEF_H
4 #define _STDDEF_H
6 #define NULL ((void *)0)
8 /* The following is not portable, but the compiler accepts it. */
9 #define offsetof(type, ident) ((size_t) (unsigned long) &((type *)0)->ident)
11 #if _EM_PSIZE == _EM_WSIZE
12 typedef int ptrdiff_t; /* result of subtracting two pointers */
13 #else /* _EM_PSIZE == _EM_LSIZE */
14 typedef long ptrdiff_t;
15 #endif
17 #ifndef _SIZE_T
18 #define _SIZE_T
19 typedef unsigned int size_t; /* type returned by sizeof */
20 #endif
22 #ifndef _WCHAR_T
23 #define _WCHAR_T
24 typedef char wchar_t; /* type expanded character set */
25 #endif
27 #endif /* _STDDEF_H */