[libcxx-commits] [libcxx] [libc++] Fix C++23 standard modules when using with `clang-cl` on Windows (PR #148992)
A. Jiang via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Jul 18 22:47:07 PDT 2025
================
@@ -14,15 +14,17 @@ export {
using ::timespec _LIBCPP_USING_IF_EXISTS;
using ::tm _LIBCPP_USING_IF_EXISTS;
-
using ::asctime _LIBCPP_USING_IF_EXISTS;
using ::clock _LIBCPP_USING_IF_EXISTS;
+ using ::strftime _LIBCPP_USING_IF_EXISTS;
+
+#ifndef _LIBCPP_ABI_VCRUNTIME
----------------
frederick-vs-ja wrote:
The issue on `<ctime>` these functions is that UCRT incorrectly adds `static` to them, so we can't directly `export` them. At this time we might simply skip `export` for them to make the standard modules buildable. MSVC STL chooses to reimplement them in the `std` namespace as a workaround.
https://github.com/llvm/llvm-project/pull/148992
More information about the libcxx-commits
mailing list