[libc++] Add a missing include in string.h (#135134)

`stddef.h` is necessary for `size_t` in explicit Clang modules build.
This commit is contained in:
Takuto Ikuta 2026-06-19 23:20:30 +09:00 committed by GitHub
parent 8eae496eff
commit 46ece19eef
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -64,6 +64,8 @@ size_t strlen(const char* s);
# include_next <string.h>
# endif
# include <stddef.h>
// MSVCRT, GNU libc and its derivates may already have the correct prototype in
// <string.h>. This macro can be defined by users if their C library provides
// the right signature.