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 | 14c25b80e9be5aab9b503a53f810c5bbffe4d632 (patch) | |
tree | 199ca992efe98f7ab5e558763404fe70f488dd1c /libcxx/include/cstdlib | |
parent | 66d45737860948d34b3f7e46d6d571a9de6cb22c (diff) | |
download | bcm5719-llvm-14c25b80e9be5aab9b503a53f810c5bbffe4d632.tar.gz bcm5719-llvm-14c25b80e9be5aab9b503a53f810c5bbffe4d632.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.
llvm-svn: 151720
Diffstat (limited to 'libcxx/include/cstdlib')
-rw-r--r-- | libcxx/include/cstdlib | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libcxx/include/cstdlib b/libcxx/include/cstdlib index 5d8a9d73464..1158db2c0ac 100644 --- a/libcxx/include/cstdlib +++ b/libcxx/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);} |