[libcxx-commits] [libcxx] Implement P1885R12: `<text_encoding>` header (PR #141312)
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Sat May 24 06:05:37 PDT 2025
================
@@ -0,0 +1,49 @@
+//===----------------------------------------------------------------------===//
+//
+// 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
+//
+//===----------------------------------------------------------------------===//
+
+#include <__config>
+
+#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
+# pragma GCC system_header
+#endif
+
+#include <__locale_dir/locale_base_api.h>
+
+#include <text_encoding>
+
+#if __has_include(<langinfo.h>)
+# include <langinfo.h>
+#endif
+
+#if _LIBCPP_STD_VER >= 26
----------------
philnik777 wrote:
We should never have version checks in `src/`.
https://github.com/llvm/llvm-project/pull/141312
More information about the libcxx-commits
mailing list