mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:07:44 +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
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…
Add table
Add a link
Reference in a new issue