cerrno 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. #ifndef _STLP_CERRNO
  16. #define _STLP_CERRNO
  17. #ifndef _STLP_OUTERMOST_HEADER_ID
  18. # define _STLP_OUTERMOST_HEADER_ID 0x105
  19. # include <stl/_prolog.h>
  20. #endif
  21. #ifndef _STLP_WCE
  22. # if defined (_STLP_USE_NEW_C_HEADERS)
  23. # if defined (_STLP_HAS_INCLUDE_NEXT)
  24. # include_next <cerrno>
  25. # else
  26. # include _STLP_NATIVE_CPP_C_HEADER(cerrno)
  27. # endif
  28. # else
  29. # include <errno.h>
  30. # endif
  31. #endif
  32. #ifndef errno /* errno is not a macro */
  33. # if defined (_STLP_IMPORT_VENDOR_CSTD)
  34. # if !defined (__IBMCPP__) && !defined (__hpux) && !defined (__MWERKS__) && !defined (_STLP_WCE)
  35. _STLP_BEGIN_NAMESPACE
  36. using _STLP_VENDOR_CSTD::errno;
  37. _STLP_END_NAMESPACE
  38. # endif
  39. # endif
  40. #endif
  41. #if (_STLP_OUTERMOST_HEADER_ID == 0x105 )
  42. # include <stl/_epilog.h>
  43. # undef _STLP_OUTERMOST_HEADER_ID
  44. #endif
  45. #endif /* _STLP_CERRNO */
  46. // Local Variables:
  47. // mode:C++
  48. // End: