diff options
author | Howard Hinnant <hhinnant@apple.com> | 2013-03-29 22:27:28 +0400 |
---|---|---|
committer | Howard Hinnant <hhinnant@apple.com> | 2013-03-29 22:27:28 +0400 |
commit | 9cb970074fb76f3507b0b97ef371308f3c384042 (patch) | |
tree | c9fe9bdbf49452fa2e4a35e96d58e69923e2790b /libcxx/include/locale | |
parent | 4b7cf64f66fe02b4dc4bbb3cf8cbed5d12df8cbe (diff) |
Bruce Mitchener, Jr.: Port to emscripten. Fixes http://llvm.org/bugs/show_bug.cgi?id=15624.
llvm-svn: 178354
Diffstat (limited to 'libcxx/include/locale')
-rw-r--r-- | libcxx/include/locale | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/include/locale b/libcxx/include/locale index 1c7156c80f24..05020e17d13d 100644 --- a/libcxx/include/locale +++ b/libcxx/include/locale @@ -222,7 +222,7 @@ typedef _VSTD::unique_ptr<__locale_struct, decltype(&uselocale)> __locale_raii; // OSX has nice foo_l() functions that let you turn off use of the global // locale. Linux, not so much. The following functions avoid the locale when // that's possible and otherwise do the wrong thing. FIXME. -#ifdef __linux__ +#if defined(__linux__) || defined(EMSCRIPTEN) #ifdef _LIBCPP_LOCALE__L_EXTENSIONS decltype(MB_CUR_MAX_L(_VSTD::declval<locale_t>())) |