[libcxx-commits] [libcxx] [libc++] Make once_flag pointer-sized on MinGW (PR #219895)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Sun Aug 30 23:51:26 PDT 2026


https://github.com/philnik777 created https://github.com/llvm/llvm-project/pull/219895

None

>From e2654c1591bd1bb8dfdbb772c42e4922276e15f2 Mon Sep 17 00:00:00 2001
From: Nikolas Klauser <nikolasklauser at berlin.de>
Date: Mon, 31 Aug 2026 08:50:57 +0200
Subject: [PATCH] [libc++] Make once_flag pointer-sized on MinGW

---
 libcxx/include/__mutex/once_flag.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libcxx/include/__mutex/once_flag.h b/libcxx/include/__mutex/once_flag.h
index 9999852b8b78a..63c97a2921412 100644
--- a/libcxx/include/__mutex/once_flag.h
+++ b/libcxx/include/__mutex/once_flag.h
@@ -52,7 +52,7 @@ struct once_flag {
   once_flag(const once_flag&)            = delete;
   once_flag& operator=(const once_flag&) = delete;
 
-#if defined(_LIBCPP_ABI_MICROSOFT)
+#ifdef _WIN32
   typedef uintptr_t _State_type;
 #else
   typedef unsigned long _State_type;



More information about the libcxx-commits mailing list