[libcxx-commits] [libcxx] [libc++] Move _LIBCPP_GET_C_LOCALE to the locale base API (PR #222924)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Sep 16 07:50:02 PDT 2026
================
@@ -0,0 +1,32 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef _LIBCPP___LOCALE_DIR_SUPPORT_GET_C_LOCALE_H
----------------
ldionne wrote:
> How? We avoid calling a function and potentially locking code. That seems like a rather big win to me.
Ack, I thought this was somehow disabling or providing reduced functionality, but it's just the way the C locale is handled on these platforms.
https://github.com/llvm/llvm-project/pull/222924
More information about the libcxx-commits
mailing list