From 0b64215170dd3562f207ef26f794755bcd600526 Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Tue, 10 Jan 2023 11:56:11 +0200 Subject: [PATCH] sysdefs.h: Don't include strings.h anymore. On some platforms src/xz/suffix.c may need for strcasecmp() but suffix.c includes the header when it needs it. Unless there is an old system that otherwise supports enough C99 to build XZ Utils but doesn't have C89/C90-compatible , there should be no need to include in sysdefs.h. --- src/common/sysdefs.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/common/sysdefs.h b/src/common/sysdefs.h index 2fbcd593..97be4ee3 100644 --- a/src/common/sysdefs.h +++ b/src/common/sysdefs.h @@ -149,14 +149,8 @@ typedef unsigned char _Bool; # define __bool_true_false_are_defined 1 #endif -// string.h should be enough but let's include strings.h too if it exists -// since that shouldn't do any harm but may improve portability. #include -#ifdef HAVE_STRINGS_H -# include -#endif - // As of MSVC 2013, inline and restrict are supported with // non-standard keywords. #if defined(_WIN32) && defined(_MSC_VER)