[libcxx] r231780 - Also use LC_C_LOCALE on CloudABI.

Ed Schouten ed at 80386.nl
Tue Mar 10 02:35:22 PDT 2015


Author: ed
Date: Tue Mar 10 04:35:22 2015
New Revision: 231780

URL: http://llvm.org/viewvc/llvm-project?rev=231780&view=rev
Log:
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.

Modified:
    libcxx/trunk/include/locale

Modified: libcxx/trunk/include/locale
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/locale?rev=231780&r1=231779&r2=231780&view=diff
==============================================================================
--- libcxx/trunk/include/locale (original)
+++ libcxx/trunk/include/locale Tue Mar 10 04:35:22 2015
@@ -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()





More information about the cfe-commits mailing list