diff options
author | Ed Schouten <ed@nuxi.nl> | 2016-06-16 11:53:11 +0000 |
---|---|---|
committer | Ed Schouten <ed@nuxi.nl> | 2016-06-16 11:53:11 +0000 |
commit | 04848f9511e8c7ca941a6ea948fb21712c977ee8 (patch) | |
tree | fb8e9efe2a70120e4723108682f0e1f4dfe360a0 /libcxx/src | |
parent | c4105480717b50c1140102db891a23b6b5e2d8e5 (diff) | |
download | bcm5719-llvm-04848f9511e8c7ca941a6ea948fb21712c977ee8.tar.gz bcm5719-llvm-04848f9511e8c7ca941a6ea948fb21712c977ee8.zip |
Remove CloudABI specific workaround.
CloudABI has gained the mblen_l() function in the meantime that does
properly return whether the character set has shift-states (read:
never).
llvm-svn: 272886
Diffstat (limited to 'libcxx/src')
-rw-r--r-- | libcxx/src/locale.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/libcxx/src/locale.cpp b/libcxx/src/locale.cpp index bc2427bfce9..da2fd11678d 100644 --- a/libcxx/src/locale.cpp +++ b/libcxx/src/locale.cpp @@ -1660,10 +1660,8 @@ codecvt<wchar_t, char, mbstate_t>::do_unshift(state_type& st, int codecvt<wchar_t, char, mbstate_t>::do_encoding() const _NOEXCEPT { -#ifndef __CloudABI__ if (__libcpp_mbtowc_l(nullptr, nullptr, MB_LEN_MAX, __l) != 0) return -1; -#endif // stateless encoding if (__l == 0 || __libcpp_mb_cur_max_l(__l) == 1) // there are no known constant length encodings |