epoc32/include/stdapis/stlport/cstd/cstddef
branchSymbian2
changeset 2 2fe1408b6811
parent 0 061f57f2323e
equal deleted inserted replaced
1:666f914201fb 2:2fe1408b6811
     1 cstddef
     1 /*
       
     2  * © Portions copyright (c) 2006-2007 Nokia Corporation.  All rights reserved.
       
     3  *
       
     4  * Copyright (c) 1999 
       
     5  * Boris Fomitchev
       
     6  *
       
     7  * This material is provided "as is", with absolutely no warranty expressed
       
     8  * or implied. Any use is at your own risk.
       
     9  *
       
    10  * Permission to use or copy this software for any purpose is hereby granted 
       
    11  * without fee, provided the above notices are retained on all copies.
       
    12  * Permission to modify the code and to distribute modified code is granted,
       
    13  * provided the above notices are retained, and a notice that the code was
       
    14  * modified is included with the above copyright notice.
       
    15  *
       
    16  */
       
    17 
       
    18 #ifndef _STLP_CSTDDEF
       
    19 # define _STLP_CSTDDEF
       
    20 
       
    21 # if ! defined (_STLP_WINCE)
       
    22 
       
    23 # ifndef _STLP_OUTERMOST_HEADER_ID
       
    24 #  define _STLP_OUTERMOST_HEADER_ID 0x114
       
    25 #  include <stl/_prolog.h>
       
    26 # endif
       
    27 
       
    28 # if (__GNUC__ >= 3) && defined(__CYGWIN__) // this total HACK is the only expedient way I could cygwin to work with GCC 3.0
       
    29 #  define __need_wint_t // mostly because wint_t didn't seem to get defined otherwise :(
       
    30 #  define __need_wchar_t
       
    31 #  define __need_size_t
       
    32 #  define __need_ptrdiff_t
       
    33 #  define __need_NULL
       
    34 # endif
       
    35 
       
    36 # if defined (_STLP_USE_NEW_C_HEADERS)
       
    37 #  include _STLP_NATIVE_CPP_C_HEADER(cstddef)
       
    38 # else
       
    39 #ifdef __SYMBIAN32__
       
    40 #  include <stddef.h>
       
    41 #else
       
    42 # include _STLP_NATIVE_C_HEADER(stddef.h)
       
    43 #endif
       
    44 # endif
       
    45 
       
    46 
       
    47 # ifdef _STLP_IMPORT_VENDOR_CSTD
       
    48 _STLP_BEGIN_NAMESPACE  
       
    49 using _STLP_VENDOR_CSTD::ptrdiff_t;
       
    50 using _STLP_VENDOR_CSTD::size_t;
       
    51 _STLP_END_NAMESPACE
       
    52 #endif /* _STLP_IMPORT_VENDOR_CSTD */
       
    53 
       
    54 # if (_STLP_OUTERMOST_HEADER_ID == 0x114 )
       
    55 #  include <stl/_epilog.h>
       
    56 #  undef _STLP_OUTERMOST_HEADER_ID
       
    57 # endif
       
    58 
       
    59 #endif /* _STLP_WINCE */
       
    60 
       
    61 #endif /* _STLP_CSTDDEF */
       
    62 
       
    63 // Local Variables:
       
    64 // mode:C++
       
    65 // End: