Skip to content

Commit 2822982

Browse files
[libcxx] Add locale support for llvm libc
1 parent 3402a1a commit 2822982

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

libcxx/include/__config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -914,7 +914,7 @@ typedef __char32_t char32_t;
914914
# endif
915915

916916
# if defined(__BIONIC__) || defined(__NuttX__) || defined(__Fuchsia__) || defined(__wasi__) || \
917-
defined(_LIBCPP_HAS_MUSL_LIBC) || defined(__OpenBSD__)
917+
defined(_LIBCPP_HAS_MUSL_LIBC) || defined(__OpenBSD__) || defined(__LLVM_LIBC__)
918918
# define _LIBCPP_PROVIDES_DEFAULT_RUNE_TABLE
919919
# endif
920920

libcxx/include/locale

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ template <class charT> class messages_byname;
217217

218218
#if defined(__unix__) || (defined(__APPLE__) && defined(__MACH__))
219219
// Most unix variants have catopen. These are the specific ones that don't.
220-
# if !defined(__BIONIC__) && !defined(_NEWLIB_VERSION) && !defined(__EMSCRIPTEN__)
220+
# if !defined(__BIONIC__) && !defined(_NEWLIB_VERSION) && !defined(__EMSCRIPTEN__) && !defined(__LLVM_LIBC__)
221221
# define _LIBCPP_HAS_CATOPEN 1
222222
# include <nl_types.h>
223223
# endif

libcxx/src/locale.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@
3434
# define _CTYPE_DISABLE_MACROS
3535
#endif
3636

37-
#if !defined(_LIBCPP_MSVCRT) && !defined(__MINGW32__) && !defined(__BIONIC__) && !defined(__NuttX__)
37+
#if !defined(_LIBCPP_MSVCRT) && !defined(__MINGW32__) && !defined(__BIONIC__) && !defined(__NuttX__) && \
38+
!defined(__LLVM_LIBC__)
3839
# include <langinfo.h>
3940
#endif
4041

0 commit comments

Comments
 (0)