[libcxx-commits] [libcxx] [libc++] Prevent cycle from including __mbstate_t.h within wchar.h (PR #200940)
Zibi Sarbinowski via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Jul 16 09:06:39 PDT 2026
zibi2 wrote:
FYI, I'm trying to remove both files, `__std_mbstate_t.h` and `__mbstate_t.h` but II'm getting into some build issue:
```
lvm-project/libcxx/src/random.cpp:18:
In file included from .../include/c++/v1/random:1684:
In file included from .../include/c++/v1/__random/bernoulli_distribution.h:14:
In file included from .../include/c++/v1/__random/uniform_real_distribution.h:15:
.../include/c++/v1/iosfwd:135:14: error: use of undeclared identifier 'mbstate_t'
135 | typedef fpos<mbstate_t> streampos;
| ^~~~~~~~~
```
Next I will try to remove just `__mbstate_t.h`.
https://github.com/llvm/llvm-project/pull/200940
More information about the libcxx-commits
mailing list