[libcxx-commits] [libcxx] [libcxx] Finish localization support for LLVM libc (PR #154170)
Aiden Grossman via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Oct 17 20:41:39 PDT 2025
https://github.com/boomanaiden154 updated https://github.com/llvm/llvm-project/pull/154170
>From 7b2137badcba36797bd7f1c81f7760b714e5a2b7 Mon Sep 17 00:00:00 2001
From: Aiden Grossman <aidengrossman at google.com>
Date: Mon, 18 Aug 2025 17:54:40 +0000
Subject: [PATCH] [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 #97508.
---
libcxx/include/__locale_dir/messages.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libcxx/include/__locale_dir/messages.h b/libcxx/include/__locale_dir/messages.h
index c04bf04025ff0..1444b5b64529d 100644
--- a/libcxx/include/__locale_dir/messages.h
+++ b/libcxx/include/__locale_dir/messages.h
@@ -22,7 +22,7 @@
# if defined(__unix__) || (defined(__APPLE__) && defined(__MACH__))
// Most unix variants have catopen. These are the specific ones that don't.
-# if !defined(__BIONIC__) && !defined(_NEWLIB_VERSION) && !defined(__EMSCRIPTEN__)
+# if !defined(__BIONIC__) && !defined(_NEWLIB_VERSION) && !defined(__EMSCRIPTEN__) && !defined(__LLVM_LIBC__)
# define _LIBCPP_HAS_CATOPEN 1
# include <nl_types.h>
# else
More information about the libcxx-commits
mailing list