diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2023-01-10 10:04:06 +0200 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2023-01-10 10:26:59 +0200 |
commit | 6e89ab58b031aa046308a0b3504ff0a5be042571 (patch) | |
tree | 24845b464e47a184feb72cc7834cb75f0f6e9226 | |
parent | CMake/Windows: Add a workaround for windres from GNU binutils. (diff) | |
download | xz-6e89ab58b031aa046308a0b3504ff0a5be042571.tar.xz |
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.
-rw-r--r-- | src/common/sysdefs.h | 8 |
1 files 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 <string.h> #ifdef HAVE_STRINGS_H # include <strings.h> #endif -#ifdef HAVE_MEMORY_H -# include <memory.h> -#endif - // As of MSVC 2013, inline and restrict are supported with // non-standard keywords. #if defined(_WIN32) && defined(_MSC_VER) |