equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 /** |
|
21 @file |
|
22 @publishedAll |
|
23 @released |
|
24 */ |
|
25 |
|
26 #ifndef _STDDEF_H_ |
|
27 #define _STDDEF_H_ |
|
28 |
|
29 /** |
|
30 There seems to be a lot of nonsense about _need_wchar_t etc., but for |
|
31 STDLIB we have cut the Gordian knot and done the simple thing. |
|
32 */ |
|
33 #ifndef __wchar_t_defined |
|
34 #ifndef __GCCXML__ |
|
35 typedef unsigned short int wchar_t; |
|
36 #endif |
|
37 #endif |
|
38 |
|
39 #ifndef _PTRDIFF_T_DEFINED |
|
40 #define _PTRDIFF_T_DEFINED |
|
41 typedef long ptrdiff_t; |
|
42 #endif //_PTRDIFF_T_DEFINED |
|
43 |
|
44 #ifndef _SIZE_T_DEFINED |
|
45 #define _SIZE_T_DEFINED |
|
46 typedef unsigned int size_t; |
|
47 #endif //_SIZE_T_DEFINED |
|
48 |
|
49 /** |
|
50 Offset of member MEMBER in a struct of type TYPE. |
|
51 */ |
|
52 #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) |
|
53 |
|
54 #endif /* _STDDEF_H_ */ |