[libcxx-commits] [libcxx] [libc++] Prevent cycle from including __mbstate_t.h within wchar.h (PR #200940)

Sean Perry via libcxx-commits libcxx-commits at lists.llvm.org
Tue Aug 18 11:17:23 PDT 2026


================
@@ -114,7 +114,7 @@ using wosyncstream = basic_osyncstream<wchar_t>;  // C++20
 #include <__cxx03/__fwd/sstream.h>
 #include <__cxx03/__fwd/streambuf.h>
 #include <__cxx03/__fwd/string.h>
-#include <__cxx03/__std_mbstate_t.h>
+#include <wchar.h>
----------------
perry-ca wrote:

nit: For coding style this should go at the end of the list now.  Same thing to consider with the other places you swapped in wchar.h.

https://github.com/llvm/llvm-project/pull/200940


More information about the libcxx-commits mailing list