From 997e4541395abd2db274c3bda04beaf5085e746f Mon Sep 17 00:00:00 2001 From: David Chisnall Date: Wed, 29 Feb 2012 13:05:08 +0000 Subject: Solaris port. Currently sees around 200 test failures, mostly related to Solaris not providing some of the locales that the test suite uses. Note: This depends on an xlocale (partial) implementation for Solaris and a couple of fixed standard headers. These will be committed to a branch later today. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@151720 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/cstdlib | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/cstdlib') diff --git a/include/cstdlib b/include/cstdlib index 5d8a9d734..1158db2c0 100644 --- a/include/cstdlib +++ b/include/cstdlib @@ -132,7 +132,8 @@ using ::wctomb; using ::mbstowcs; using ::wcstombs; -#ifndef _MSC_VER // MSVC already has the correct prototype in #ifdef __cplusplus +// MSVC already has the correct prototype in #ifdef __cplusplus +#if !defined(_MSC_VER) && !defined(__sun__) inline _LIBCPP_INLINE_VISIBILITY long abs( long __x) {return labs(__x);} inline _LIBCPP_INLINE_VISIBILITY long long abs(long long __x) {return llabs(__x);} -- cgit v1.2.3