sl@0: /* sl@0: * Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: * All rights reserved. sl@0: * This component and the accompanying materials are made available sl@0: * under the terms of "Eclipse Public License v1.0" sl@0: * which accompanies this distribution, and is available sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: * sl@0: * Initial Contributors: sl@0: * Nokia Corporation - initial contribution. sl@0: * sl@0: * Contributors: sl@0: * sl@0: * Description: sl@0: * sl@0: */ sl@0: sl@0: sl@0: sl@0: /** sl@0: @file sl@0: @publishedAll sl@0: @released sl@0: */ sl@0: sl@0: #ifndef _STDDEF_H_ sl@0: #define _STDDEF_H_ sl@0: sl@0: /** sl@0: There seems to be a lot of nonsense about _need_wchar_t etc., but for sl@0: STDLIB we have cut the Gordian knot and done the simple thing. sl@0: */ sl@0: #ifndef __wchar_t_defined sl@0: #ifndef __GCCXML__ sl@0: typedef unsigned short int wchar_t; sl@0: #endif sl@0: #endif sl@0: sl@0: #ifndef _PTRDIFF_T_DEFINED sl@0: #define _PTRDIFF_T_DEFINED sl@0: typedef long ptrdiff_t; sl@0: #endif //_PTRDIFF_T_DEFINED sl@0: sl@0: #ifndef _SIZE_T_DEFINED sl@0: #define _SIZE_T_DEFINED sl@0: typedef unsigned int size_t; sl@0: #endif //_SIZE_T_DEFINED sl@0: sl@0: /** sl@0: Offset of member MEMBER in a struct of type TYPE. sl@0: */ sl@0: #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) sl@0: sl@0: #endif /* _STDDEF_H_ */