plan9fox/sys/include/ape/stddef.h
2011-03-30 19:35:09 +03:00

24 lines
376 B
C

#ifndef __STDDEF_H
#define __STDDEF_H
#ifndef NULL
#ifdef __cplusplus
#define NULL 0
#else
#define NULL ((void*)0)
#endif
#endif
#define offsetof(ty,mem) ((size_t) &(((ty *)0)->mem))
typedef long ptrdiff_t;
#ifndef _SIZE_T
#define _SIZE_T
typedef unsigned long size_t;
#endif
#ifndef _WCHAR_T
#define _WCHAR_T
typedef unsigned short wchar_t;
#endif
#endif /* __STDDEF_H */