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
     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;

mercurial