diff options
author | Marshall Clow <mclow.lists@gmail.com> | 2013-11-19 19:16:03 +0000 |
---|---|---|
committer | Marshall Clow <mclow.lists@gmail.com> | 2013-11-19 19:16:03 +0000 |
commit | 028875aa7c9fe8b56e7690b986762728f599b37c (patch) | |
tree | 34ff32ea87215b3c6b94b1e2cbe2b2fbb36ba8ca /libcxx/include | |
parent | eed0bdee598d6a38fa600bdffef2dcc199046941 (diff) | |
download | bcm5719-llvm-028875aa7c9fe8b56e7690b986762728f599b37c.tar.gz bcm5719-llvm-028875aa7c9fe8b56e7690b986762728f599b37c.zip |
Patch by Xing Xue to improve libc++ support for AIX
llvm-svn: 195144
Diffstat (limited to 'libcxx/include')
-rw-r--r-- | libcxx/include/__config | 3 | ||||
-rw-r--r-- | libcxx/include/support/ibm/support.h | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/libcxx/include/__config b/libcxx/include/__config index aa8bc4482c5..874bcc156c2 100644 --- a/libcxx/include/__config +++ b/libcxx/include/__config @@ -454,7 +454,6 @@ namespace std { #define _LIBCPP_HAS_NO_GENERALIZED_INITIALIZERS #define _LIBCPP_HAS_NO_NULLPTR #define _LIBCPP_HAS_NO_UNICODE_CHARS -#define _LIBCPP_HAS_NO_STRONG_ENUMS #define _LIBCPP_HAS_IS_BASE_OF #if defined(_AIX) @@ -514,7 +513,7 @@ template <unsigned> struct __static_assert_check {}; #define __has_feature(__x) 0 #endif -#if __has_feature(cxx_explicit_conversions) +#if __has_feature(cxx_explicit_conversions) || defined(__IBMCPP__) # define _LIBCPP_EXPLICIT explicit #else # define _LIBCPP_EXPLICIT diff --git a/libcxx/include/support/ibm/support.h b/libcxx/include/support/ibm/support.h index 3effbaed160..0abfa7f95a6 100644 --- a/libcxx/include/support/ibm/support.h +++ b/libcxx/include/support/ibm/support.h @@ -15,7 +15,7 @@ extern "builtin" int __popcnt4(unsigned int); extern "builtin" int __popcnt8(unsigned long long); extern "builtin" unsigned int __cnttz4(unsigned int); extern "builtin" unsigned int __cnttz8(unsigned long long); -extern "builtin" unsigned int __cntlz4(unsigned long long); +extern "builtin" unsigned int __cntlz4(unsigned int); extern "builtin" unsigned int __cntlz8(unsigned long long); // Builtin functions for counting population |