mirror of
https://github.com/mirror/wget.git
synced 2026-08-19 09:23:27 +08:00
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:
@@ -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.])
|
||||
|
||||
|
||||
@@ -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 '\\'
|
||||
|
||||
Reference in New Issue
Block a user