aboutsummaryrefslogtreecommitdiff
path: root/lib/strequal.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-08-24 14:29:06 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-08-24 14:29:06 +0000
commit32899f8309211e2141937d24b754480a9df10951 (patch)
tree5cfdfc478f3f39a5688615e4781ccb652608c0b3 /lib/strequal.c
parentdc7c6d10308c1d13754ee09b62a458d8c0c1046d (diff)
added the strcasecmp() proto here (moved from setup.h), as this is the
only file within libcurl to use that function
Diffstat (limited to 'lib/strequal.c')
-rw-r--r--lib/strequal.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/strequal.c b/lib/strequal.c
index 04e0c9788..780a99801 100644
--- a/lib/strequal.c
+++ b/lib/strequal.c
@@ -26,6 +26,12 @@
#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)