Deleted Added
full compact
cstdlib (232969) cstdlib (241900)
1// -*- C++ -*-
2//===--------------------------- cstdlib ----------------------------------===//
3//
4// The LLVM Compiler Infrastructure
5//
6// This file is dual licensed under the MIT and the University of Illinois Open
7// Source Licenses. See LICENSE.TXT for details.
8//

--- 60 unchanged lines hidden (view full) ---

69lldiv_t div(long long numer, long long denom); // C++0X
70ldiv_t ldiv( long numer, long denom);
71lldiv_t lldiv(long long numer, long long denom); // C99
72int mblen(const char* s, size_t n);
73int mbtowc(wchar_t* restrict pwc, const char* restrict s, size_t n);
74int wctomb(char* s, wchar_t wchar);
75size_t mbstowcs(wchar_t* restrict pwcs, const char* restrict s, size_t n);
76size_t wcstombs(char* restrict s, const wchar_t* restrict pwcs, size_t n);
1// -*- C++ -*-
2//===--------------------------- cstdlib ----------------------------------===//
3//
4// The LLVM Compiler Infrastructure
5//
6// This file is dual licensed under the MIT and the University of Illinois Open
7// Source Licenses. See LICENSE.TXT for details.
8//

--- 60 unchanged lines hidden (view full) ---

69lldiv_t div(long long numer, long long denom); // C++0X
70ldiv_t ldiv( long numer, long denom);
71lldiv_t lldiv(long long numer, long long denom); // C99
72int mblen(const char* s, size_t n);
73int mbtowc(wchar_t* restrict pwc, const char* restrict s, size_t n);
74int wctomb(char* s, wchar_t wchar);
75size_t mbstowcs(wchar_t* restrict pwcs, const char* restrict s, size_t n);
76size_t wcstombs(char* restrict s, const wchar_t* restrict pwcs, size_t n);
77int at_quick_exit(void (*func)(void)) // C++11
78void quick_exit(int status); // C++11
79void *aligned_alloc(size_t alignment, size_t size); // C11
77
78} // std
79
80*/
81
82#include <__config>
83#include <stdlib.h>
84#ifdef _MSC_VER

--- 45 unchanged lines hidden (view full) ---

130using ::mbtowc;
131using ::wctomb;
132using ::mbstowcs;
133using ::wcstombs;
134#ifdef _LIBCPP_HAS_QUICK_EXIT
135using ::at_quick_exit;
136using ::quick_exit;
137#endif
80
81} // std
82
83*/
84
85#include <__config>
86#include <stdlib.h>
87#ifdef _MSC_VER

--- 45 unchanged lines hidden (view full) ---

133using ::mbtowc;
134using ::wctomb;
135using ::mbstowcs;
136using ::wcstombs;
137#ifdef _LIBCPP_HAS_QUICK_EXIT
138using ::at_quick_exit;
139using ::quick_exit;
140#endif
141#ifdef _LIBCPP_HAS_C11_FEATURES
142using ::aligned_alloc;
143#endif
138
139// MSVC already has the correct prototype in <stdlib.h.h> #ifdef __cplusplus
140#if !defined(_MSC_VER) && !defined(__sun__)
144
145// MSVC already has the correct prototype in <stdlib.h.h> #ifdef __cplusplus
146#if !defined(_MSC_VER) && !defined(__sun__)
141inline _LIBCPP_INLINE_VISIBILITY long abs( long __x) {return labs(__x);}
142inline _LIBCPP_INLINE_VISIBILITY long long abs(long long __x) {return llabs(__x);}
147inline _LIBCPP_INLINE_VISIBILITY long abs( long __x) _NOEXCEPT {return labs(__x);}
148inline _LIBCPP_INLINE_VISIBILITY long long abs(long long __x) _NOEXCEPT {return llabs(__x);}
143
149
144inline _LIBCPP_INLINE_VISIBILITY ldiv_t div( long __x, long __y) {return ldiv(__x, __y);}
145inline _LIBCPP_INLINE_VISIBILITY lldiv_t div(long long __x, long long __y) {return lldiv(__x, __y);}
150inline _LIBCPP_INLINE_VISIBILITY ldiv_t div( long __x, long __y) _NOEXCEPT {return ldiv(__x, __y);}
151inline _LIBCPP_INLINE_VISIBILITY lldiv_t div(long long __x, long long __y) _NOEXCEPT {return lldiv(__x, __y);}
146#endif // _MSC_VER
147
148_LIBCPP_END_NAMESPACE_STD
149
150#endif // _LIBCPP_CSTDLIB
152#endif // _MSC_VER
153
154_LIBCPP_END_NAMESPACE_STD
155
156#endif // _LIBCPP_CSTDLIB