]> granicus.if.org Git - curl/commitdiff
added the strcasecmp() proto here (moved from setup.h), as this is the
authorDaniel Stenberg <daniel@haxx.se>
Sun, 24 Aug 2003 14:29:06 +0000 (14:29 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 24 Aug 2003 14:29:06 +0000 (14:29 +0000)
only file within libcurl to use that function

lib/strequal.c

index 04e0c978848a51aea4f6bee6668c1cb5bfa1aa67..780a99801bde4e5cd33d57884b5787650c1e7b6d 100644 (file)
 #include <string.h>
 #include <ctype.h>
 
+#ifdef HAVE_STRCASECMP
+/* this is for "-ansi -Wall -pedantic" to stop complaining! */
+extern int (strcasecmp)(const char *s1, const char *s2);
+extern int (strncasecmp)(const char *s1, const char *s2, size_t n);
+#endif
+
 int curl_strequal(const char *first, const char *second)
 {
 #if defined(HAVE_STRCASECMP)