summaryrefslogtreecommitdiff
path: root/include/cstdlib
diff options
context:
space:
mode:
authorHoward Hinnant <hhinnant@apple.com>2013-08-14 18:00:20 +0000
committerHoward Hinnant <hhinnant@apple.com>2013-08-14 18:00:20 +0000
commit7f76450ee9f14ed646a38f43a09dc49dde413281 (patch)
tree289ec251e6285f6c2afa93d7f6d2e0ce401350d8 /include/cstdlib
parent3e005bf6b2649da693d6c3109b5947890a0ffec3 (diff)
downloadlibcxx-7f76450ee9f14ed646a38f43a09dc49dde413281.tar.gz
Xing Xue: port to IBM XLC++/AIX.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@188396 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/cstdlib')
-rw-r--r--include/cstdlib2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/cstdlib b/include/cstdlib
index 0a96fb0a8..152b891de 100644
--- a/include/cstdlib
+++ b/include/cstdlib
@@ -155,7 +155,7 @@ using ::aligned_alloc;
#endif
// MSVCRT already has the correct prototype in <stdlib.h> #ifdef __cplusplus
-#if !defined(_LIBCPP_MSVCRT) && !defined(__sun__)
+#if !defined(_LIBCPP_MSVCRT) && !defined(__sun__) && !defined(_AIX)
inline _LIBCPP_INLINE_VISIBILITY long abs( long __x) _NOEXCEPT {return labs(__x);}
#ifndef _LIBCPP_HAS_NO_LONG_LONG
inline _LIBCPP_INLINE_VISIBILITY long long abs(long long __x) _NOEXCEPT {return llabs(__x);}