[libcxx-commits] [libcxx] 46ece19 - [libc++] Add a missing include in string.h (#135134)
via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Jun 19 07:20:35 PDT 2026
Author: Takuto Ikuta
Date: 2026-06-19T10:20:30-04:00
New Revision: 46ece19eef8199137c0df10b492cadcb91060846
URL: https://github.com/llvm/llvm-project/commit/46ece19eef8199137c0df10b492cadcb91060846
DIFF: https://github.com/llvm/llvm-project/commit/46ece19eef8199137c0df10b492cadcb91060846.diff
LOG: [libc++] Add a missing include in string.h (#135134)
`stddef.h` is necessary for `size_t` in explicit Clang modules build.
Added:
Modified:
libcxx/include/string.h
Removed:
################################################################################
diff --git a/libcxx/include/string.h b/libcxx/include/string.h
index 6bdcd6a6eecbd..2ffcb913010b6 100644
--- a/libcxx/include/string.h
+++ b/libcxx/include/string.h
@@ -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.
More information about the libcxx-commits
mailing list