[libcxx-commits] [libcxx] [libc++] Make once_flag pointer-sized on MinGW (PR #219895)
via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Aug 30 23:52:01 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libcxx
Author: Nikolas Klauser (philnik777)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/219895.diff
1 Files Affected:
- (modified) libcxx/include/__mutex/once_flag.h (+1-1)
``````````diff
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;
``````````
</details>
https://github.com/llvm/llvm-project/pull/219895
More information about the libcxx-commits
mailing list