Sat, 05 Oct 2019 17:07:16 +0200
adds missing include for strncasecmp() to avoid an implicit declaration
src/string.c | file | annotate | diff | comparison | revisions |
--- a/src/string.c Sat Oct 05 16:58:16 2019 +0200 +++ b/src/string.c Sat Oct 05 17:07:16 2019 +0200 @@ -36,6 +36,10 @@ #include <stdint.h> #include <ctype.h> +#ifndef _WIN32 +#include <strings.h> /* for strncasecmp() */ +#endif /* _WIN32 */ + sstr_t sstr(char *cstring) { sstr_t string; string.ptr = cstring;