11 #if defined(__need_malloc_and_calloc)
13 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
14 #pragma GCC system_header
17 #include_next <stdlib.h>
19 #elif !defined(_LIBCPP_STDLIB_H)
20 #define _LIBCPP_STDLIB_H
90 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
91 #pragma GCC system_header
94 #include_next <stdlib.h>
104 #ifndef _LIBCPP_HAS_NO_LONG_LONG
110 #if !defined(_LIBCPP_MSVCRT) && !defined(__sun__) && !defined(_AIX)
111 inline _LIBCPP_INLINE_VISIBILITY
long abs(
long __x) _NOEXCEPT {
return labs(__x);}
112 #ifndef _LIBCPP_HAS_NO_LONG_LONG
113 inline _LIBCPP_INLINE_VISIBILITY
long long abs(
long long __x) _NOEXCEPT {
return llabs(__x);}
114 #endif // _LIBCPP_HAS_NO_LONG_LONG
116 inline _LIBCPP_INLINE_VISIBILITY ldiv_t div(
long __x,
long __y) _NOEXCEPT {
return ldiv(__x, __y);}
117 #ifndef _LIBCPP_HAS_NO_LONG_LONG
118 inline _LIBCPP_INLINE_VISIBILITY lldiv_t div(
long long __x,
long long __y) _NOEXCEPT {
return lldiv(__x, __y);}
119 #endif // _LIBCPP_HAS_NO_LONG_LONG
120 #endif // _LIBCPP_MSVCRT / __sun__ / _AIX
124 #endif // __cplusplus
126 #endif // _LIBCPP_STDLIB_H