wchar.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /*
  2. * Copyright (c) 1999
  3. * Boris Fomitchev
  4. *
  5. * This material is provided "as is", with absolutely no warranty expressed
  6. * or implied. Any use is at your own risk.
  7. *
  8. * Permission to use or copy this software for any purpose is hereby granted
  9. * without fee, provided the above notices are retained on all copies.
  10. * Permission to modify the code and to distribute modified code is granted,
  11. * provided the above notices are retained, and a notice that the code was
  12. * modified is included with the above copyright notice.
  13. *
  14. */
  15. #if !defined (_STLP_OUTERMOST_HEADER_ID)
  16. # define _STLP_OUTERMOST_HEADER_ID 0x278
  17. # include <stl/_cprolog.h>
  18. #elif (_STLP_OUTERMOST_HEADER_ID == 0x278) && !defined (_STLP_DONT_POP_HEADER_ID)
  19. # define _STLP_DONT_POP_HEADER_ID
  20. #endif
  21. #if !defined (_STLP_WCE_EVC3) && !defined (_STLP_NO_WCHAR_T)
  22. # if defined (__BORLANDC__) && !defined (__linux__)
  23. # if defined (_STLP_HAS_INCLUDE_NEXT)
  24. # include_next <_str.h>
  25. # else
  26. # include _STLP_NATIVE_CPP_C_HEADER(_str.h)
  27. # endif
  28. # ifdef __cplusplus
  29. using _STLP_VENDOR_CSTD::strlen;
  30. using _STLP_VENDOR_CSTD::strspn;
  31. # endif
  32. # endif
  33. # if (((__GNUC__ < 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ < 3))) && defined (__APPLE__)) || defined (__OpenBSD__)
  34. # if defined (_STLP_HAS_INCLUDE_NEXT)
  35. # include_next <stddef.h>
  36. # else
  37. # include _STLP_NATIVE_C_HEADER(stddef.h)
  38. # endif
  39. # else
  40. # if defined (_STLP_HAS_INCLUDE_NEXT)
  41. # include_next <wchar.h>
  42. # else
  43. # include _STLP_NATIVE_C_HEADER(wchar.h)
  44. # endif
  45. # endif
  46. #endif /* !defined (_STLP_WCE_EVC3) && !defined (_STLP_NO_WCHAR_T) */
  47. #ifndef _STLP_INTERNAL_MBSTATE_T
  48. # include <stl/_mbstate_t.h>
  49. #endif
  50. #if (_STLP_OUTERMOST_HEADER_ID == 0x278)
  51. # if ! defined (_STLP_DONT_POP_HEADER_ID)
  52. # include <stl/_epilog.h>
  53. # undef _STLP_OUTERMOST_HEADER_ID
  54. # else
  55. # undef _STLP_DONT_POP_HEADER_ID
  56. # endif
  57. #endif