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