williamr@4: /* williamr@4: * Copyright (c) 1999 williamr@4: * Boris Fomitchev williamr@4: * williamr@4: * This material is provided "as is", with absolutely no warranty expressed williamr@4: * or implied. Any use is at your own risk. williamr@4: * williamr@4: * Permission to use or copy this software for any purpose is hereby granted williamr@4: * without fee, provided the above notices are retained on all copies. williamr@4: * Permission to modify the code and to distribute modified code is granted, williamr@4: * provided the above notices are retained, and a notice that the code was williamr@4: * modified is included with the above copyright notice. williamr@4: * williamr@4: */ williamr@4: williamr@4: #if !defined (_STLP_OUTERMOST_HEADER_ID) williamr@4: # define _STLP_OUTERMOST_HEADER_ID 0x278 williamr@4: # include williamr@4: #elif (_STLP_OUTERMOST_HEADER_ID == 0x278) && !defined (_STLP_DONT_POP_HEADER_ID) williamr@4: # define _STLP_DONT_POP_HEADER_ID williamr@4: #endif williamr@4: williamr@4: #if !defined (_STLP_WCE_EVC3) && !defined (_STLP_NO_WCHAR_T) williamr@4: williamr@4: # if defined (__BORLANDC__) williamr@4: /* williamr@4: # include williamr@4: */ williamr@4: # include _STLP_NATIVE_CPP_C_HEADER(_str.h) williamr@4: # ifdef __cplusplus williamr@4: using _STLP_VENDOR_CSTD::strlen; williamr@4: using _STLP_VENDOR_CSTD::strspn; williamr@4: # endif williamr@4: # endif williamr@4: williamr@4: # if (((__GNUC__ < 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ < 3))) && defined (__APPLE__)) || defined (__OpenBSD__) williamr@4: # include _STLP_NATIVE_C_HEADER(stddef.h) williamr@4: # elif defined(__MWERKS__) && defined(N_PLAT_NLM) williamr@4: /* williamr@4: * MSL library has wrong definition of wint_t (with -wchar_t on) in wchar_t.h header. williamr@4: * IMHO the best way is to comment line williamr@4: * typedef wchar_t wint_t; williamr@4: * (I use this way). williamr@4: * williamr@4: * Another solution is to define _WINT_T (to avoid conflict with wint_t definitions in williamr@4: * Novell SDK headers, _WCHAR_T defined in nlm_prefix.h). But you should define one williamr@4: * before include any header from Novell's SDK, so this isn't too good choice. williamr@4: * williamr@4: * And third solution is don't use anyware (even here) wchar_t.h williamr@4: * williamr@4: * - ptr, 2003 and 2005-05-07 williamr@4: */ williamr@4: /* williamr@4: #if __option(wchar_type) williamr@4: # define _WINT_T williamr@4: #endif williamr@4: */ williamr@4: # include _STLP_NATIVE_CPP_C_HEADER(wchar_t.h) williamr@4: # include _STLP_NATIVE_C_HEADER(stddef.h) williamr@4: # include _STLP_NATIVE_C_HEADER(stdio.h) williamr@4: # include williamr@4: int wcslen( const wchar_t *_wc ); williamr@4: int wcscmp( const wchar_t *_wc1, const wchar_t *_wc2 ); williamr@4: int wcsncmp( const wchar_t *_wc1, const wchar_t *_wc2, size_t n ); williamr@4: wchar_t *wcsstr( const wchar_t *_wc1, const wchar_t *_wc2 ); williamr@4: wchar_t *wcschr( const wchar_t *_wc1, wchar_t _wc2 ); williamr@4: wchar_t *wcsrchr( const wchar_t *_wc1, wchar_t _wc2 ); williamr@4: wchar_t *wcscpy( wchar_t *_wc1, const wchar_t *_wc2 ); williamr@4: wchar_t *wcsncpy( wchar_t *_wc1, const wchar_t *_wc2, size_t n ); williamr@4: wchar_t *wcspbrk( const wchar_t *_wc, const wchar_t *_wc2 ); williamr@4: # else williamr@4: # include _STLP_NATIVE_C_HEADER(wchar.h) williamr@4: # endif williamr@4: #endif /* !defined (_STLP_WCE_EVC3) && !defined (_STLP_NO_WCHAR_T) */ williamr@4: williamr@4: #ifndef _STLP_INTERNAL_MBSTATE_T williamr@4: # include williamr@4: #endif williamr@4: williamr@4: #if (_STLP_OUTERMOST_HEADER_ID == 0x278) williamr@4: # if ! defined (_STLP_DONT_POP_HEADER_ID) williamr@4: # include williamr@4: # undef _STLP_OUTERMOST_HEADER_ID williamr@4: # else williamr@4: # undef _STLP_DONT_POP_HEADER_ID williamr@4: # endif williamr@4: #endif williamr@4: williamr@4: /* williamr@4: Local Variables: williamr@4: mode:C++ williamr@4: End: williamr@4: */