URL
https://opencores.org/ocsvn/eco32/eco32/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 4 |
Rev 157 |
#ifndef __STDDEF
|
#ifndef __STDDEF
|
#define __STDDEF
|
#define __STDDEF
|
|
|
/* $Id: stddef.h,v 1.1 2002/08/28 23:59:59 drh Exp $ */
|
/* $Id: stddef.h,v 1.1 2002/08/28 23:59:59 drh Exp $ */
|
|
|
#ifndef NULL
|
#ifndef NULL
|
#define NULL ((void*)0)
|
#define NULL ((void*)0)
|
#endif
|
#endif
|
#define offsetof(ty,mem) ((size_t)((char*)&((ty*)0)->mem - (char*)0))
|
#define offsetof(ty,mem) ((size_t)((char*)&((ty*)0)->mem - (char*)0))
|
|
|
typedef long ptrdiff_t;
|
typedef long ptrdiff_t;
|
|
|
#if !defined(_SIZE_T) && !defined(_SIZE_T_) && !defined(_SIZE_T_DEFINED)
|
#if !defined(_SIZE_T) && !defined(_SIZE_T_) && !defined(_SIZE_T_DEFINED)
|
#define _SIZE_T
|
#define _SIZE_T
|
#define _SIZE_T_
|
#define _SIZE_T_
|
#define _SIZE_T_DEFINED
|
#define _SIZE_T_DEFINED
|
typedef unsigned long size_t;
|
typedef unsigned long size_t;
|
#endif
|
#endif
|
|
|
#if !defined(_WCHAR_T) && !defined(_WCHAR_T_) && !defined(_WCHAR_T_DEFINED)
|
#if !defined(_WCHAR_T) && !defined(_WCHAR_T_) && !defined(_WCHAR_T_DEFINED)
|
#define _WCHAR_T
|
#define _WCHAR_T
|
#define _WCHAR_T_
|
#define _WCHAR_T_
|
#define _WCHAR_T_DEFINED
|
#define _WCHAR_T_DEFINED
|
#if (_WCHAR_T_SIZE + 0) == 1
|
#if (_WCHAR_T_SIZE + 0) == 1
|
typedef unsigned char wchar_t;
|
typedef unsigned char wchar_t;
|
#elif (_WCHAR_T_SIZE + 0) == 2
|
#elif (_WCHAR_T_SIZE + 0) == 2
|
typedef unsigned short wchar_t;
|
typedef unsigned short wchar_t;
|
#elif (_WCHAR_T_SIZE + 0) == 4
|
#elif (_WCHAR_T_SIZE + 0) == 4
|
typedef unsigned int wchar_t;
|
typedef unsigned int wchar_t;
|
#else
|
#else
|
typedef unsigned short wchar_t;
|
typedef unsigned short wchar_t;
|
#endif
|
#endif
|
#endif
|
#endif
|
|
|
#endif /* __STDDEF */
|
#endif /* __STDDEF */
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.