Enable _LIBCPP_LOCALE__L_EXTENSIONS on CloudABI.
authorEd Schouten <ed@80386.nl>
Tue, 10 Mar 2015 09:26:38 +0000 (09:26 +0000)
committerEd Schouten <ed@80386.nl>
Tue, 10 Mar 2015 09:26:38 +0000 (09:26 +0000)
CloudABI provides the _l() functions that are part of POSIX.1-2008, but
also the extensions that are available on systems like OS X and *BSD
(scanf_l, printf_l, etc).

llvm-svn: 231777

libcxx/include/__config

index 00dfa9f..c105518 100644 (file)
@@ -642,7 +642,8 @@ template <unsigned> struct __static_assert_check {};
 #define _LIBCPP_NONUNIQUE_RTTI_BIT (1ULL << 63)
 #endif
 
-#if defined(__APPLE__) || defined(__FreeBSD__) || defined(_WIN32) || defined(__sun__) || defined(__NetBSD__)
+#if defined(__APPLE__) || defined(__FreeBSD__) || defined(_WIN32) || \
+    defined(__sun__) || defined(__NetBSD__) || defined(__CloudABI__)
 #define _LIBCPP_LOCALE__L_EXTENSIONS 1
 #endif