cstdlib 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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_CSTDLIB
  16. #ifndef _STLP_OUTERMOST_HEADER_ID
  17. # define _STLP_OUTERMOST_HEADER_ID 0x116
  18. # define _STLP_CSTDLIB
  19. # include <stl/_prolog.h>
  20. #endif
  21. # if defined (__GNUC__) && defined (__MINGW32__)
  22. /* Native cstdlib includes stdlib.h using an include_next so STLport stdlib.h
  23. * is not used and the workaround in this file must be duplicated here
  24. * (see stdlib.h). */
  25. # include "errno.h"
  26. # endif
  27. #if (_STLP_OUTERMOST_HEADER_ID == 0x116)
  28. # ifndef _STLP_INTERNAL_CSTDLIB
  29. # include <stl/_cstdlib.h>
  30. # endif
  31. #endif
  32. #if (_STLP_OUTERMOST_HEADER_ID != 0x116) || defined (_STLP_IMPORT_VENDOR_STD)
  33. # if defined (_STLP_HAS_INCLUDE_NEXT)
  34. # include_next <cstdlib>
  35. # else
  36. # include _STLP_NATIVE_CPP_C_HEADER(cstdlib)
  37. # endif
  38. #endif
  39. #if (_STLP_OUTERMOST_HEADER_ID == 0x116)
  40. # include <stl/_epilog.h>
  41. # undef _STLP_OUTERMOST_HEADER_ID
  42. #endif
  43. #endif /* _STLP_CSTDLIB */
  44. // Local Variables:
  45. // mode:C++
  46. // End: