mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +00:00
LibC: Include strings.h
in string.h
Certain C Libraries have (unfortunately) included strings.h as a part of string.h, which violates the POSIX spec for that specific header. Some applications rely on this being the case, so let's include it in our string.h
This commit is contained in:
parent
857c8850f3
commit
eefad5ccd7
Notes:
sideshowbarker
2024-07-17 21:44:13 +09:00
Author: https://github.com/Quaker762 Commit: https://github.com/SerenityOS/serenity/commit/eefad5ccd7f Pull-request: https://github.com/SerenityOS/serenity/pull/11533 Reviewed-by: https://github.com/alimpfard Reviewed-by: https://github.com/awesomekling
1 changed files with 5 additions and 0 deletions
|
@ -11,6 +11,11 @@
|
|||
|
||||
__BEGIN_DECLS
|
||||
|
||||
// A few C Standard Libraries include this header in <string.h>, and hence expect
|
||||
// `strcasecmp` etcetera to be available as part of a <string.h> include, so let's
|
||||
// do the same here to maintain compatibility
|
||||
#include <strings.h>
|
||||
|
||||
size_t strlen(const char*);
|
||||
size_t strnlen(const char*, size_t maxlen);
|
||||
|
||||
|
|
Loading…
Reference in a new issue