Skip to content

Commit 7b2137b

Browse files
[libcxx] Finish localization support for LLVM libc
This patch enables building libcxx with LIBCXX_ENABLE_LOCALIZATION=ON when building against LLVM libc. This finishes up llvm#97508.
1 parent 6960bf5 commit 7b2137b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcxx/include/__locale_dir/messages.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
# if defined(__unix__) || (defined(__APPLE__) && defined(__MACH__))
2424
// Most unix variants have catopen. These are the specific ones that don't.
25-
# if !defined(__BIONIC__) && !defined(_NEWLIB_VERSION) && !defined(__EMSCRIPTEN__)
25+
# if !defined(__BIONIC__) && !defined(_NEWLIB_VERSION) && !defined(__EMSCRIPTEN__) && !defined(__LLVM_LIBC__)
2626
# define _LIBCPP_HAS_CATOPEN 1
2727
# include <nl_types.h>
2828
# else

0 commit comments

Comments
 (0)