OpenCores
URL https://opencores.org/ocsvn/eco32/eco32/trunk

Subversion Repositories eco32

[/] [eco32/] [trunk/] [lcc/] [include/] [eco32/] [linux/] [stddef.h] - Blame information for rev 10

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 4 hellwig
#ifndef __STDDEF
2
#define __STDDEF
3
 
4
/* $Id: stddef.h,v 1.1 2002/08/28 23:59:59 drh Exp $ */
5
 
6
#ifndef NULL
7
#define NULL ((void*)0)
8
#endif
9
#define offsetof(ty,mem) ((size_t)((char*)&((ty*)0)->mem - (char*)0))
10
 
11
typedef long ptrdiff_t;
12
 
13
#if !defined(_SIZE_T) && !defined(_SIZE_T_) && !defined(_SIZE_T_DEFINED)
14
#define _SIZE_T
15
#define _SIZE_T_
16
#define _SIZE_T_DEFINED
17
typedef unsigned long size_t;
18
#endif
19
 
20
#if !defined(_WCHAR_T) && !defined(_WCHAR_T_) && !defined(_WCHAR_T_DEFINED)
21
#define _WCHAR_T
22
#define _WCHAR_T_
23
#define _WCHAR_T_DEFINED
24
#if   (_WCHAR_T_SIZE + 0) == 1
25
typedef unsigned char wchar_t;
26
#elif (_WCHAR_T_SIZE + 0) == 2
27
typedef unsigned short wchar_t;
28
#elif (_WCHAR_T_SIZE + 0) == 4
29
typedef unsigned int wchar_t;
30
#else
31
typedef unsigned short wchar_t;
32
#endif
33
#endif
34
 
35
#endif /* __STDDEF */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.