Implement user space's printf stuff
[thunix.git] / include / stddef.h
blobcd19bfce9c08853cffcfc831945784ef4f93e4ae
1 #ifndef STDDEF_H
2 #define STDDEF_H
4 #ifndef _PTRDIFF_T
5 #define _PRTDIFF_T
6 typedef long ptrdiff_t;
7 #endif
9 #ifndef _SIZE_T
10 #define _SIZE_T
11 typedef unsigned long size_t;
12 #endif
14 #undef NULL
15 #define NULL ((void *) 0)
17 #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE*)0->MEMBER)
19 #endif /* _STDDEF_H */