adds missing include for strncasecmp() to avoid an implicit declaration

Sat, 05 Oct 2019 17:07:16 +0200

author
Mike Becker <universe@uap-core.de>
date
Sat, 05 Oct 2019 17:07:16 +0200
changeset 361
8ee9e23adbd2
parent 360
fed2ead878ea
child 362
39cef8f37eb5

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;

mercurial