mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-10-31 05:35:35 +00:00
strcasecmp is no longer used, so remove the compatibility code
This commit is contained in:
@@ -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,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)
|
||||
|
||||
Reference in New Issue
Block a user