From db88ad441e20870a70faf6cc654145b24cb3373b Mon Sep 17 00:00:00 2001 From: Darshit Shah Date: Tue, 29 Dec 2020 01:26:05 +0100 Subject: [PATCH] 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 --- configure.ac | 2 -- src/mswindows.h | 8 -------- 2 files changed, 10 deletions(-) diff --git a/configure.ac b/configure.ac index b8a60e2c..9227f318 100644 --- a/configure.ac +++ b/configure.ac @@ -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.]) diff --git a/src/mswindows.h b/src/mswindows.h index 5012232f..a8f9ba05 100644 --- a/src/mswindows.h +++ b/src/mswindows.h @@ -59,14 +59,6 @@ as that of the covered work. */ /* Declares inet_ntop() and inet_pton(). */ #include -/* We have strcasecmp and strncasecmp, just under different names. */ -#ifndef HAVE_STRCASECMP -# define strcasecmp stricmp -#endif -#ifndef HAVE_STRNCASECMP -# define strncasecmp strnicmp -#endif - #include #define PATH_SEPARATOR '\\'