From 78b6828f1420a266e02687685bc2ab993a54eadd Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Sat, 22 Oct 2011 20:59:45 +0000 Subject: More windows port work by Ruben Van Boxem git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@142732 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/cstdlib | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/cstdlib') diff --git a/include/cstdlib b/include/cstdlib index e8726cf6f..01b13a8dc 100644 --- a/include/cstdlib +++ b/include/cstdlib @@ -81,6 +81,9 @@ size_t wcstombs(char* restrict s, const wchar_t* restrict pwcs, size_t n); #include <__config> #include +#ifdef _MSC_VER +#include "support/win32/support.h" +#endif // _MSC_VER #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) #pragma GCC system_header @@ -129,11 +132,13 @@ using ::wctomb; using ::mbstowcs; using ::wcstombs; +#ifndef _MSC_VER // MSVC already has the correct prototype in #ifdef __cplusplus inline _LIBCPP_INLINE_VISIBILITY long abs( long __x) {return labs(__x);} inline _LIBCPP_INLINE_VISIBILITY long long abs(long long __x) {return llabs(__x);} inline _LIBCPP_INLINE_VISIBILITY ldiv_t div( long __x, long __y) {return ldiv(__x, __y);} inline _LIBCPP_INLINE_VISIBILITY lldiv_t div(long long __x, long long __y) {return lldiv(__x, __y);} +#endif // _MSC_VER _LIBCPP_END_NAMESPACE_STD -- cgit v1.2.3