From: Dan Fandrich Date: Wed, 9 Aug 2006 16:36:17 +0000 (+0000) Subject: Only define the string prototypes in ANSI mode to reduce interference on X-Git-Tag: curl-7_15_6-prepipeline~50 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4272af801fab5f58abcaaa61ae7ce75a90929fb5;p=thirdparty%2Fcurl.git Only define the string prototypes in ANSI mode to reduce interference on systems that prototype them slightly differently. --- diff --git a/lib/strequal.c b/lib/strequal.c index f993e382ab..34f95fd90b 100644 --- a/lib/strequal.c +++ b/lib/strequal.c @@ -28,7 +28,7 @@ #include "strequal.h" -#ifdef HAVE_STRCASECMP +#if defined(HAVE_STRCASECMP) && defined(__STRICT_ANSI__) /* 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);