Remove portability handling for str[n]casecmp

* src/mswindows.c: Gnulib ensures we always have str{n}casecmp
* configure.ac: Don't need to define HAVE_STR[N]CASECMP anymore
This commit is contained in:
Darshit Shah
2020-12-29 01:26:05 +01:00
committed by Tim Rühsen
parent 8b1aeab783
commit db88ad441e
2 changed files with 0 additions and 10 deletions

View File

@@ -357,8 +357,6 @@ dnl We expect to have these functions on Unix-like systems configure
dnl runs on. The defines are provided to get them in config.h.in so
dnl Wget can still be ported to non-Unix systems (such as Windows)
dnl that lack some of these functions.
AC_DEFINE([HAVE_STRCASECMP], 1, [Define to 1 if you have the `strcasecmp' function.])
AC_DEFINE([HAVE_STRNCASECMP], 1, [Define to 1 if you have the `strncasecmp' function.])
AC_DEFINE([HAVE_STRDUP], 1, [Define to 1 if you have the `strdup' function.])
AC_DEFINE([HAVE_ISATTY], 1, [Define to 1 if you have the `isatty' function.])

View File

@@ -59,14 +59,6 @@ as that of the covered work. */
/* Declares inet_ntop() and inet_pton(). */
#include <arpa/inet.h>
/* We have strcasecmp and strncasecmp, just under different names. */
#ifndef HAVE_STRCASECMP
# define strcasecmp stricmp
#endif
#ifndef HAVE_STRNCASECMP
# define strncasecmp strnicmp
#endif
#include <stdio.h>
#define PATH_SEPARATOR '\\'