Browse Source

strcasecmp is no longer used, so remove the compatibility code

master
Reece H. Dunn 9 years ago
parent
commit
7d8b983ee7
2 changed files with 0 additions and 22 deletions
  1. 0
    1
      configure.ac
  2. 0
    21
      src/libespeak-ng/compiledata.c

+ 0
- 1
configure.ac 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])

+ 0
- 21
src/libespeak-ng/compiledata.c 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)

Loading…
Cancel
Save