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 |
1.1 --- a/src/string.c Sat Oct 05 16:58:16 2019 +0200 1.2 +++ b/src/string.c Sat Oct 05 17:07:16 2019 +0200 1.3 @@ -36,6 +36,10 @@ 1.4 #include <stdint.h> 1.5 #include <ctype.h> 1.6 1.7 +#ifndef _WIN32 1.8 +#include <strings.h> /* for strncasecmp() */ 1.9 +#endif /* _WIN32 */ 1.10 + 1.11 sstr_t sstr(char *cstring) { 1.12 sstr_t string; 1.13 string.ptr = cstring;