diff options
author | Louis Dionne <ldionne.2@gmail.com> | 2022-11-24 13:02:58 -0500 |
---|---|---|
committer | Louis Dionne <ldionne.2@gmail.com> | 2023-05-05 08:39:51 -0400 |
commit | 3b6bc87520273d7ebc3b796b8493ddb401257038 (patch) | |
tree | 8d361bf172891ac8caedc4055188e34a3517963c /libcxx/src/locale.cpp | |
parent | e3afe0b89de57662e411f8cc14f6229782ec86ff (diff) | |
download | llvm-3b6bc87520273d7ebc3b796b8493ddb401257038.tar.gz |
[libc++] Remove Solaris related code
This was contributed ~10 years ago, but we don't officially support it
and I am not aware of any bot testing it, so this has likely rotten to
the point where it is unusable.
Differential Revision: https://reviews.llvm.org/D138680
Diffstat (limited to 'libcxx/src/locale.cpp')
-rw-r--r-- | libcxx/src/locale.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/libcxx/src/locale.cpp b/libcxx/src/locale.cpp index 1e60c025b127..930bf4f8f3a2 100644 --- a/libcxx/src/locale.cpp +++ b/libcxx/src/locale.cpp @@ -6,12 +6,6 @@ // //===----------------------------------------------------------------------===// -// On Solaris, we need to define something to make the C99 parts of localeconv -// visible. -#ifdef __sun__ -#define _LCONV_C99 -#endif - #include <__utility/unreachable.h> #include <algorithm> #include <clocale> @@ -1189,8 +1183,6 @@ ctype<char>::classic_table() noexcept return _C_ctype_tab_ + 1; #elif defined(__GLIBC__) return _LIBCPP_GET_C_LOCALE->__ctype_b; -#elif defined(__sun__) - return __ctype_mask; #elif defined(_LIBCPP_MSVCRT) || defined(__MINGW32__) return __pctype_func(); #elif defined(__EMSCRIPTEN__) @@ -1411,10 +1403,8 @@ ctype_byname<wchar_t>::do_is(const char_type* low, const char_type* high, mask* if (iswxdigit_l(ch, __l_)) *vec |= xdigit; #endif -#if !defined(__sun__) if (iswblank_l(ch, __l_)) *vec |= blank; -#endif } } return low; |