2011-03-30 13:47:56 +00:00
|
|
|
#ifndef __STDDEF_H
|
|
|
|
#define __STDDEF_H
|
|
|
|
|
2020-03-24 21:45:15 +00:00
|
|
|
#ifndef __STDDEF_ARCH_H
|
|
|
|
typedef long _ptrdiff_t;
|
|
|
|
#endif
|
|
|
|
|
2011-03-30 13:47:56 +00:00
|
|
|
#ifndef NULL
|
|
|
|
#ifdef __cplusplus
|
|
|
|
#define NULL 0
|
|
|
|
#else
|
|
|
|
#define NULL ((void*)0)
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#define offsetof(ty,mem) ((size_t) &(((ty *)0)->mem))
|
|
|
|
|
2020-03-24 21:45:15 +00:00
|
|
|
typedef _ptrdiff_t ptrdiff_t;
|
2011-03-30 13:47:56 +00:00
|
|
|
#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 */
|