epoc32/include/libc/stddef.h
author William Roberts <williamr@symbian.org>
Tue, 16 Mar 2010 16:12:26 +0000
branchSymbian2
changeset 2 2fe1408b6811
parent 0 061f57f2323e
child 4 837f303aceeb
permissions -rw-r--r--
Final list of Symbian^2 public API header files
     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 the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
     8 *
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    11 *
    12 * Contributors:
    13 *
    14 * Description:
    15 *
    16 */
    17 
    18 
    19 
    20 
    21 
    22 
    23 /**
    24  @file
    25  @publishedAll
    26  @released
    27 */
    28 
    29 #ifndef _STDDEF_H_
    30 #define _STDDEF_H_
    31 
    32 /** 
    33 There seems to be a lot of nonsense about _need_wchar_t etc., but for
    34 STDLIB we have cut the Gordian knot and done the simple thing.
    35 */
    36 #ifndef __wchar_t_defined
    37 #ifndef __GCCXML__
    38 typedef unsigned short int wchar_t;
    39 #endif
    40 #endif
    41 
    42 #ifndef _PTRDIFF_T_DEFINED
    43 #define _PTRDIFF_T_DEFINED
    44 typedef long		ptrdiff_t;
    45 #endif //_PTRDIFF_T_DEFINED
    46 
    47 #ifndef _SIZE_T_DEFINED
    48 #define _SIZE_T_DEFINED
    49 typedef unsigned int	size_t;
    50 #endif //_SIZE_T_DEFINED
    51 
    52 /** 
    53 Offset of member MEMBER in a struct of type TYPE.  
    54 */
    55 #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
    56 
    57 #endif /* _STDDEF_H_ */