]> git.lizzy.rs Git - plan9front.git/blob - sys/include/ape/stddef.h
libsec: use tsmemcmp() when comparing hashes, use mpfield() for ecc, use mptober...
[plan9front.git] / sys / include / ape / stddef.h
1 #ifndef __STDDEF_H
2 #define __STDDEF_H
3
4 #ifndef NULL
5 #ifdef __cplusplus
6 #define NULL 0
7 #else
8 #define NULL ((void*)0)
9 #endif
10 #endif
11 #define offsetof(ty,mem) ((size_t) &(((ty *)0)->mem))
12
13 typedef long ptrdiff_t;
14 #ifndef _SIZE_T
15 #define _SIZE_T
16 typedef unsigned long size_t;
17 #endif
18 #ifndef _WCHAR_T
19 #define _WCHAR_T
20 typedef unsigned short wchar_t;
21 #endif
22
23 #endif /* __STDDEF_H */