Update contrib.
2 * Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
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.
33 #ifndef __wchar_t_defined
35 typedef unsigned short int wchar_t;
39 #ifndef _PTRDIFF_T_DEFINED
40 #define _PTRDIFF_T_DEFINED
41 typedef long ptrdiff_t;
42 #endif //_PTRDIFF_T_DEFINED
44 #ifndef _SIZE_T_DEFINED
45 #define _SIZE_T_DEFINED
46 typedef unsigned int size_t;
47 #endif //_SIZE_T_DEFINED
50 Offset of member MEMBER in a struct of type TYPE.
52 #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
54 #endif /* _STDDEF_H_ */