Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(257)

Unified Diff: include/locale

Issue 1441603003: Cherry-pick upstream r252457 (Closed) Base URL: https://chromium.googlesource.com/a/native_client/pnacl-libcxx.git@master
Patch Set: Use __musl__ define to detect musl Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/__locale ('k') | include/support/musl/xlocale.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/locale
diff --git a/include/locale b/include/locale
index 0d0100204204fc696fd2cd66048eb482272f7723..3affd2db1010666ce3d99ce04f4bcfbfef9f980e 100644
--- a/include/locale
+++ b/include/locale
@@ -235,7 +235,7 @@ typedef _VSTD::unique_ptr<__locale_struct, decltype(&uselocale)> __locale_raii;
// locale. Linux, not so much. The following functions avoid the locale when
// that's possible and otherwise do the wrong thing. FIXME.
#if defined(__linux__) || defined(__EMSCRIPTEN__) || defined(_AIX) || \
- defined(_NEWLIB_VERSION)
+ defined(_NEWLIB_VERSION) || defined(_LIBCPP_HAS_MUSL_LIBC)
#ifdef _LIBCPP_LOCALE__L_EXTENSIONS
decltype(MB_CUR_MAX_L(_VSTD::declval<locale_t>()))
« no previous file with comments | « include/__locale ('k') | include/support/musl/xlocale.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698