strcasecmp is no longer used, so remove the compatibility code

This commit is contained in:
Reece H. Dunn
2015-12-21 13:18:31 +00:00
parent f84fdc2d98
commit 7d8b983ee7
2 changed files with 0 additions and 22 deletions
-1
View File
@@ -99,7 +99,6 @@ AC_CHECK_FUNCS([mkdir])
AC_CHECK_FUNCS([pow])
AC_CHECK_FUNCS([setlocale])
AC_CHECK_FUNCS([sqrt])
AC_CHECK_FUNCS([strcasecmp])
AC_CHECK_FUNCS([strchr])
AC_CHECK_FUNCS([strdup])
AC_CHECK_FUNCS([strerror])
-21
View File
@@ -21,7 +21,6 @@
#include <stdio.h>
#include <string.h>
#include <strings.h>
#include <ctype.h>
#include <stdlib.h>
#include <time.h>
@@ -873,26 +872,6 @@ static void CompileReport(void)
}
#ifdef PLATFORM_WINDOWS
int strcasecmp(const char *s1, const char *s2)
{
int ix=0;
int diff;
for(;; )
{
if((diff = (tolower(s1[ix]) - tolower(s2[ix]))) != 0)
return(diff);
if((s1[ix] == 0) || (s2[ix] == 0))
return(diff);
ix++;
}
}
#endif
static void error(const char *format, const char *string)
{
if(string==NULL)