Add support for BIONIC C library (Android). Patch from Dan Albert

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@212724 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Marshall Clow
2014-07-10 15:20:28 +00:00
parent 7778249d2d
commit a64392627e
5 changed files with 217 additions and 12 deletions

View File

@@ -30,9 +30,9 @@
#include "__sso_allocator"
#if defined(_LIBCPP_MSVCRT) || defined(__MINGW32__)
#include <support/win32/locale_win32.h>
#else // _LIBCPP_MSVCRT
#elif !defined(__ANDROID__)
#include <langinfo.h>
#endif // !_LIBCPP_MSVCRT
#endif
#include <stdlib.h>
#include <stdio.h>
@@ -1037,6 +1037,8 @@ ctype<char>::classic_table() _NOEXCEPT
return *__ctype_b_loc();
#elif defined(_AIX)
return (const unsigned int *)__lc_ctype_ptr->obj->mask;
#elif defined(__ANDROID__)
return _ctype_;
#else
// Platform not supported: abort so the person doing the port knows what to
// fix