llvm-capstone/libcxx
Pengxuan Zheng fef23e8d87 [libc++] Include "bits/alltypes.h" to provide mbstate_t when using musl libc
With D148542, we ran into the following libc++ build error when using musl libc.

```
.../musl/include/bits/alltypes.h:354:16:
error: definition of type '__mbstate_t' conflicts with typedef of the same name
typedef struct __mbstate_t { unsigned __opaque1, __opaque2; } mbstate_t;
               ^
.../sysroot/usr/include/bits/types/__mbstate_t.h:21:3: note: '__mbstate_t' declared here
} __mbstate_t;
  ^
1 error generated.
```
This is because the mbstate_t definition in musl libc conflicts with the one
from "bits/types/mbstate_t.h", and this patch attempts to fix this build issue
when musl libc is used.

Reviewed By: iana

Differential Revision: https://reviews.llvm.org/D151740
2023-05-30 17:59:32 -07:00
..
benchmarks [libc++] Forward to std::{,w}memchr in std::find 2023-05-25 07:59:50 -07:00
cmake [libc++] Adds C++26 support. 2023-05-24 07:49:19 +02:00
docs [libc++] Deprecate the classes in strstream. 2023-05-30 18:57:09 +02:00
include [libc++] Include "bits/alltypes.h" to provide mbstate_t when using musl libc 2023-05-30 17:59:32 -07:00
lib
modules [libc++][modules] Adds std module cppm files. 2023-05-23 18:51:27 +02:00
src [libc++][format] Removes format sources. 2023-05-16 20:31:44 +02:00
test [libc++][PSTL] Implement std::merge 2023-05-30 15:07:06 -07:00
utils [libc++][ci] Use ccache in the jobs that build Clang 2023-05-30 13:10:03 -07:00
.clang-format
.clang-tidy
.gitignore
appveyor-reqs-install.cmd
appveyor.yml
CMakeLists.txt Reland "[CMake] Bumps minimum version to 3.20.0. 2023-05-27 12:51:21 +02:00
CREDITS.TXT [libcxx] Add mdspan/extents 2023-05-16 14:30:36 -07:00
LICENSE.TXT
TODO.TXT