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