URL
https://opencores.org/ocsvn/eco32/eco32/trunk
Subversion Repositories eco32
[/] [eco32/] [trunk/] [lcc/] [include/] [sparc/] [solaris/] [stddef.h] - Rev 40
Go to most recent revision | Compare with Previous | Blame | View Log
#ifndef __STDDEF #define __STDDEF /* $Id: stddef.h,v 1.1 2002/08/28 23:59:20 drh Exp $ */ #ifndef NULL #define NULL ((void*)0) #endif #define offsetof(ty,mem) ((size_t)((char*)&((ty*)0)->mem - (char*)0)) typedef long ptrdiff_t; #if !defined(_SIZE_T) && !defined(_SIZE_T_) && !defined(_SIZE_T_DEFINED) #define _SIZE_T #define _SIZE_T_ #define _SIZE_T_DEFINED typedef unsigned long size_t; #endif #if !defined(_WCHAR_T) && !defined(_WCHAR_T_) && !defined(_WCHAR_T_DEFINED) #define _WCHAR_T #define _WCHAR_T_ #define _WCHAR_T_DEFINED #if (_WCHAR_T_SIZE + 0) == 1 typedef unsigned char wchar_t; #elif (_WCHAR_T_SIZE + 0) == 2 typedef unsigned short wchar_t; #elif (_WCHAR_T_SIZE + 0) == 4 typedef unsigned int wchar_t; #else typedef unsigned short wchar_t; #endif #endif #endif /* __STDDEF */
Go to most recent revision | Compare with Previous | Blame | View Log