diff options
Diffstat (limited to 'code/tools/lcc/include/mips/irix/stddef.h')
-rw-r--r-- | code/tools/lcc/include/mips/irix/stddef.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/code/tools/lcc/include/mips/irix/stddef.h b/code/tools/lcc/include/mips/irix/stddef.h new file mode 100644 index 0000000..4e87e1c --- /dev/null +++ b/code/tools/lcc/include/mips/irix/stddef.h @@ -0,0 +1,22 @@ +#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 */ |