From 6e89ab58b031aa046308a0b3504ff0a5be042571 Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Tue, 10 Jan 2023 10:04:06 +0200 Subject: [PATCH] sysdefs.h: Don't include memory.h anymore even if it were available. It quite probably was never needed, that is, any system where memory.h was required likely couldn't compile XZ Utils for other reasons anyway. XZ Utils 5.2.6 and later source packages were generated using Autoconf 2.71 which no longer defines HAVE_MEMORY_H. So the code being removed is no longer used anyway. --- src/common/sysdefs.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/common/sysdefs.h b/src/common/sysdefs.h index df7ecf40..47bcbd97 100644 --- a/src/common/sysdefs.h +++ b/src/common/sysdefs.h @@ -149,18 +149,14 @@ typedef unsigned char _Bool; # define __bool_true_false_are_defined 1 #endif -// string.h should be enough but let's include strings.h and memory.h too if -// they exists, since that shouldn't do any harm, but may improve portability. +// 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 -#ifdef HAVE_MEMORY_H -# include -#endif - // As of MSVC 2013, inline and restrict are supported with // non-standard keywords. #if defined(_WIN32) && defined(_MSC_VER)