16#ifndef _STLP_INTERNAL_CSTDLIB
17#define _STLP_INTERNAL_CSTDLIB
19#if defined (_STLP_USE_NEW_C_HEADERS)
20# if defined (_STLP_HAS_INCLUDE_NEXT)
21# include_next <cstdlib>
23# include _STLP_NATIVE_CPP_C_HEADER(cstdlib)
29#if defined (__BORLANDC__) && !defined (__linux__)
40#if defined (_STLP_WCE)
41# define _STLP_NATIVE_SETJMP_H_INCLUDED
44#if defined (__MSL__) && (__MSL__ <= 0x5003)
48# ifdef __MSL_LONGLONG_SUPPORT__
54#ifdef _STLP_IMPORT_VENDOR_CSTD
56using _STLP_VENDOR_CSTD::div_t;
57using _STLP_VENDOR_CSTD::ldiv_t;
58using _STLP_VENDOR_CSTD::size_t;
60# ifndef _STLP_NO_CSTD_FUNCTION_IMPORTS
63using _STLP_VENDOR_CSTD::abort;
64using _STLP_VENDOR_CSTD::getenv;
65using _STLP_VENDOR_CSTD::mblen;
66using _STLP_VENDOR_CSTD::mbtowc;
67using _STLP_VENDOR_CSTD::system;
68using _STLP_VENDOR_CSTD::bsearch;
70using _STLP_VENDOR_CSTD::atexit;
71using _STLP_VENDOR_CSTD::exit;
72using _STLP_VENDOR_CSTD::calloc;
73using _STLP_VENDOR_CSTD::free;
74using _STLP_VENDOR_CSTD::malloc;
75using _STLP_VENDOR_CSTD::realloc;
76using _STLP_VENDOR_CSTD::atof;
77using _STLP_VENDOR_CSTD::atoi;
78using _STLP_VENDOR_CSTD::atol;
79using _STLP_VENDOR_CSTD::mbstowcs;
80using _STLP_VENDOR_CSTD::strtod;
81using _STLP_VENDOR_CSTD::strtol;
82using _STLP_VENDOR_CSTD::strtoul;
84# if !(defined (_STLP_NO_NATIVE_WIDE_STREAMS) || defined (_STLP_NO_NATIVE_MBSTATE_T))
85using _STLP_VENDOR_CSTD::wcstombs;
87using _STLP_VENDOR_CSTD::wctomb;
90using _STLP_VENDOR_CSTD::qsort;
91using _STLP_VENDOR_CSTD::labs;
92using _STLP_VENDOR_CSTD::ldiv;
93# if defined (_STLP_LONG_LONG) && !defined (_STLP_NO_VENDOR_STDLIB_L)
95using _STLP_VENDOR_CSTD::llabs;
96using _STLP_VENDOR_CSTD::lldiv_t;
97using _STLP_VENDOR_CSTD::lldiv;
104using _STLP_VENDOR_CSTD::rand;
105using _STLP_VENDOR_CSTD::srand;
110#if (defined (__BORLANDC__) || defined (__WATCOMC__)) && defined (_STLP_USE_NEW_C_HEADERS)
113inline int abs(
int __x) {
return _STLP_VENDOR_CSTD::abs(__x); }
114inline _STLP_VENDOR_CSTD::div_t
div(
int __x,
int __y) {
return _STLP_VENDOR_CSTD::div(__x, __y); }
117#if defined(_MSC_EXTENSIONS) && defined(_STLP_MSVC) && (_STLP_MSVC <= 1300)
118# define _STLP_RESTORE_FUNCTION_INTRINSIC
119# pragma warning (push)
120# pragma warning (disable: 4162)
121# pragma function (abs)
125#if !defined (__SUNPRO_CC) && \
126 (!defined (__HP_aCC) || (__HP_aCC < 30000))
129# if !defined (__WATCOMC__) && \
130 (!defined (_STLP_MSVC_LIB) || (_STLP_MSVC_LIB < 1310) || defined (UNDER_CE))
131inline long abs(
long __x) {
return _STLP_VENDOR_CSTD::labs(__x); }
135# if !defined (__WATCOMC__) && \
136 (!defined (_STLP_MSVC_LIB) || (_STLP_MSVC_LIB < 1400) || defined (_STLP_USING_PLATFORM_SDK_COMPILER) || defined (UNDER_CE))
137inline _STLP_VENDOR_CSTD::ldiv_t
div(
long __x,
long __y) {
return _STLP_VENDOR_CSTD::ldiv(__x, __y); }
142#if defined (_STLP_RESTORE_FUNCTION_INTRINSIC)
143# pragma intrinsic (abs)
144# pragma warning (pop)
145# undef _STLP_RESTORE_FUNCTION_INTRINSIC
148#if defined (_STLP_LONG_LONG)
149# if !defined (_STLP_NO_VENDOR_STDLIB_L)
168#ifndef _STLP_INTERNAL_CMATH
172#if defined (_STLP_IMPORT_VENDOR_CSTD) && !defined (_STLP_NO_CSTD_FUNCTION_IMPORTS)
_STLP_VENDOR_CSTD::ldiv_t div(long __x, long __y)
#define _STLP_BEGIN_NAMESPACE
#define _STLP_END_NAMESPACE