Commit 32899f83 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

added the strcasecmp() proto here (moved from setup.h), as this is the

only file within libcurl to use that function
parent dc7c6d10
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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)