os/ossrv/genericopenlibs/cppstdlib/stl/stlport/wchar.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@0
     1
/*
sl@0
     2
 * Copyright (c) 1999
sl@0
     3
 * Boris Fomitchev
sl@0
     4
 *
sl@0
     5
 * This material is provided "as is", with absolutely no warranty expressed
sl@0
     6
 * or implied. Any use is at your own risk.
sl@0
     7
 *
sl@0
     8
 * Permission to use or copy this software for any purpose is hereby granted
sl@0
     9
 * without fee, provided the above notices are retained on all copies.
sl@0
    10
 * Permission to modify the code and to distribute modified code is granted,
sl@0
    11
 * provided the above notices are retained, and a notice that the code was
sl@0
    12
 * modified is included with the above copyright notice.
sl@0
    13
 *
sl@0
    14
 */
sl@0
    15
sl@0
    16
#if !defined (_STLP_OUTERMOST_HEADER_ID)
sl@0
    17
#  define _STLP_OUTERMOST_HEADER_ID 0x278
sl@0
    18
#  include <stl/_prolog.h>
sl@0
    19
#elif (_STLP_OUTERMOST_HEADER_ID == 0x278) && !defined (_STLP_DONT_POP_HEADER_ID)
sl@0
    20
#  define _STLP_DONT_POP_HEADER_ID
sl@0
    21
#endif
sl@0
    22
sl@0
    23
#if !defined (_STLP_WCE_EVC3) && !defined (_STLP_NO_WCHAR_T)
sl@0
    24
sl@0
    25
#  if defined (__BORLANDC__)
sl@0
    26
/*
sl@0
    27
#  include <cstring>
sl@0
    28
*/
sl@0
    29
#    include _STLP_NATIVE_CPP_C_HEADER(_str.h)
sl@0
    30
#    ifdef __cplusplus
sl@0
    31
using _STLP_VENDOR_CSTD::strlen;
sl@0
    32
using _STLP_VENDOR_CSTD::strspn;
sl@0
    33
#    endif
sl@0
    34
#  endif
sl@0
    35
sl@0
    36
#  if (((__GNUC__ < 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ < 3))) && defined (__APPLE__)) || defined (__OpenBSD__)
sl@0
    37
#    include _STLP_NATIVE_C_HEADER(stddef.h)
sl@0
    38
#  elif defined(__MWERKS__) && defined(N_PLAT_NLM)
sl@0
    39
/*
sl@0
    40
 * MSL library has wrong definition of wint_t (with -wchar_t on) in wchar_t.h header.
sl@0
    41
 * IMHO the best way is to comment line
sl@0
    42
 *       typedef wchar_t wint_t;
sl@0
    43
 * (I use this way).
sl@0
    44
 *
sl@0
    45
 * Another solution is to define _WINT_T (to avoid conflict with wint_t definitions in
sl@0
    46
 * Novell SDK headers, _WCHAR_T defined in nlm_prefix.h). But you should define one
sl@0
    47
 * before include any header from Novell's SDK, so this isn't too good choice.
sl@0
    48
 *
sl@0
    49
 * And third solution is don't use anyware (even here) wchar_t.h
sl@0
    50
 *
sl@0
    51
 *      - ptr, 2003 and 2005-05-07
sl@0
    52
 */
sl@0
    53
/*
sl@0
    54
#if __option(wchar_type)
sl@0
    55
# define _WINT_T
sl@0
    56
#endif
sl@0
    57
*/
sl@0
    58
#   include _STLP_NATIVE_CPP_C_HEADER(wchar_t.h)
sl@0
    59
#   include _STLP_NATIVE_C_HEADER(stddef.h)
sl@0
    60
#   include _STLP_NATIVE_C_HEADER(stdio.h)
sl@0
    61
#   include <unicode.h>
sl@0
    62
int wcslen( const wchar_t *_wc );
sl@0
    63
int wcscmp( const wchar_t *_wc1, const wchar_t *_wc2 );
sl@0
    64
int wcsncmp( const wchar_t *_wc1, const wchar_t *_wc2, size_t n );
sl@0
    65
wchar_t *wcsstr( const wchar_t *_wc1, const wchar_t *_wc2 );
sl@0
    66
wchar_t *wcschr( const wchar_t *_wc1, wchar_t _wc2 );
sl@0
    67
wchar_t *wcsrchr( const wchar_t *_wc1, wchar_t _wc2 );
sl@0
    68
wchar_t *wcscpy( wchar_t *_wc1, const wchar_t *_wc2 );
sl@0
    69
wchar_t *wcsncpy( wchar_t *_wc1, const wchar_t *_wc2, size_t n );
sl@0
    70
wchar_t *wcspbrk( const wchar_t *_wc, const wchar_t *_wc2 );
sl@0
    71
#  else
sl@0
    72
#    include _STLP_NATIVE_C_HEADER(wchar.h)
sl@0
    73
#  endif
sl@0
    74
#endif /* !defined (_STLP_WCE_EVC3) && !defined (_STLP_NO_WCHAR_T) */
sl@0
    75
sl@0
    76
#ifndef _STLP_INTERNAL_MBSTATE_T
sl@0
    77
#  include <stl/_mbstate_t.h>
sl@0
    78
#endif
sl@0
    79
sl@0
    80
#if (_STLP_OUTERMOST_HEADER_ID == 0x278)
sl@0
    81
#  if ! defined (_STLP_DONT_POP_HEADER_ID)
sl@0
    82
#    include <stl/_epilog.h>
sl@0
    83
#    undef  _STLP_OUTERMOST_HEADER_ID
sl@0
    84
#  else
sl@0
    85
#    undef  _STLP_DONT_POP_HEADER_ID
sl@0
    86
#  endif
sl@0
    87
#endif
sl@0
    88
sl@0
    89
/*
sl@0
    90
 Local Variables:
sl@0
    91
 mode:C++
sl@0
    92
 End:
sl@0
    93
*/