Also use LC_C_LOCALE on CloudABI.
Before I discovered that NetBSD provides a permanent handle to the C locale called LC_C_LOCALE, I also added support for this to CloudABI under the name LC_POSIX_LOCALE. I've renamed it to LC_C_LOCALE to improve compatibility. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@231780 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -216,7 +216,7 @@ _LIBCPP_BEGIN_NAMESPACE_STD
|
||||
|
||||
#if defined(__APPLE__) || defined(__FreeBSD__)
|
||||
# define _LIBCPP_GET_C_LOCALE 0
|
||||
#elif defined(__NetBSD__)
|
||||
#elif defined(__CloudABI__) || defined(__NetBSD__)
|
||||
# define _LIBCPP_GET_C_LOCALE LC_C_LOCALE
|
||||
#else
|
||||
# define _LIBCPP_GET_C_LOCALE __cloc()
|
||||
|
Reference in New Issue
Block a user