mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-11 15:21:40 +00:00
22 lines
405 B
C
22 lines
405 B
C
#ifndef __STDDEF
|
|
#define __STDDEF
|
|
|
|
|
|
#define NULL 0
|
|
#define offsetof(ty,mem) ((size_t)((char*)&((ty*)0)->mem - (char*)0))
|
|
|
|
typedef long ptrdiff_t;
|
|
|
|
#if !defined(_SIZE_T) && !defined(_SIZE_T_)
|
|
#define _SIZE_T
|
|
#define _SIZE_T_
|
|
typedef unsigned long size_t;
|
|
#endif
|
|
|
|
#if !defined(_WCHAR_T) && !defined(_WCHAR_T_)
|
|
#define _WCHAR_T
|
|
#define _WCHAR_T_
|
|
typedef unsigned short wchar_t;
|
|
#endif
|
|
|
|
#endif /* __STDDEF */
|