summaryrefslogtreecommitdiffstats
path: root/include/cstdlib
diff options
context:
space:
mode:
authortheraven <theraven@FreeBSD.org>2012-03-13 14:09:15 +0000
committertheraven <theraven@FreeBSD.org>2012-03-13 14:09:15 +0000
commitbaa75b9984d33ea49ffb76a73507b64d879166cc (patch)
tree491848d33dbdf1751fd52f321d3fbf70a8e616f2 /include/cstdlib
parentd8f28ec8a2faabad3aabb9f7a26755971424ef05 (diff)
downloadFreeBSD-src-baa75b9984d33ea49ffb76a73507b64d879166cc.zip
FreeBSD-src-baa75b9984d33ea49ffb76a73507b64d879166cc.tar.gz
Import new version of libc++ into vendor branch.
Approved by: dim (mentor)
Diffstat (limited to 'include/cstdlib')
-rw-r--r--include/cstdlib3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/cstdlib b/include/cstdlib
index 5d8a9d7..1158db2 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);}
OpenPOWER on IntegriCloud