aboutsummaryrefslogtreecommitdiff
path: root/lib/strequal.c
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2006-08-09 16:36:17 +0000
committerDan Fandrich <dan@coneharvesters.com>2006-08-09 16:36:17 +0000
commit4272af801fab5f58abcaaa61ae7ce75a90929fb5 (patch)
treef018e0325555122cea43f94fc78099f31f21a097 /lib/strequal.c
parent0b633027cb6d44df08c975f347a7dd9927d231d4 (diff)
Only define the string prototypes in ANSI mode to reduce interference on
systems that prototype them slightly differently.
Diffstat (limited to 'lib/strequal.c')
-rw-r--r--lib/strequal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/strequal.c b/lib/strequal.c
index f993e382a..34f95fd90 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);