From 562251ec37afe7b09df19406f2a50f8046ba6124 Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Thu, 3 Jul 2003 09:21:36 +0000 Subject: [PATCH] strncasecmp and memicmp appear to be the same from the man pages. However I don't have memicmp and unless other systems don't have strncasecmp I see no reason to add more checks to the configure script. --- stepmania/src/RageUtil.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stepmania/src/RageUtil.h b/stepmania/src/RageUtil.h index d153979048..80c57b25f0 100644 --- a/stepmania/src/RageUtil.h +++ b/stepmania/src/RageUtil.h @@ -244,7 +244,8 @@ struct char_traits_char_nocase: public char_traits { return toupper(c1) < toupper(c2); } static int compare( const char* s1, const char* s2, size_t n ) { - return memicmp( s1, s2, n ); + //return memicmp( s1, s2, n ); + return strncasecmp( s1, s2, n ); } static inline char fasttoupper(char a)