Skip to content

Commit e9ca7ef

Browse files
authored
[libc++] Add a missing include in string.h
`stddef.h` is necessary for `size_t`.
1 parent 3fd0d22 commit e9ca7ef

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libcxx/include/string.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ size_t strlen(const char* s);
6464
# include_next <string.h>
6565
# endif
6666

67+
# include <stddef.h>
68+
6769
// MSVCRT, GNU libc and its derivates may already have the correct prototype in
6870
// <string.h>. This macro can be defined by users if their C library provides
6971
// the right signature.

0 commit comments

Comments
 (0)