diff options
| author | David Chisnall <csdavec@swan.ac.uk> | 2012-02-29 13:05:08 +0000 |
|---|---|---|
| committer | David Chisnall <csdavec@swan.ac.uk> | 2012-02-29 13:05:08 +0000 |
| commit | 997e4541395abd2db274c3bda04beaf5085e746f (patch) | |
| tree | f2e2bd2b2d3cf24db919a03789585e6fb4b6fdec /include/cstdlib | |
| parent | f2b2cc6440fa517d3bc29f78aebbb9106040c411 (diff) | |
| download | external_libcxx-997e4541395abd2db274c3bda04beaf5085e746f.tar.gz external_libcxx-997e4541395abd2db274c3bda04beaf5085e746f.tar.bz2 external_libcxx-997e4541395abd2db274c3bda04beaf5085e746f.zip | |
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
Diffstat (limited to 'include/cstdlib')
| -rw-r--r-- | include/cstdlib | 3 |
1 files changed, 2 insertions, 1 deletions
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 <stdlib.h.h> #ifdef __cplusplus +// MSVC already has the correct prototype in <stdlib.h.h> #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);} |
