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.
This commit is contained in:
Lasse Collin 2023-01-10 10:04:06 +02:00
parent 5e34774c31
commit 194a5fab69
1 changed files with 2 additions and 6 deletions

View File

@ -149,18 +149,14 @@ typedef unsigned char _Bool;
# define __bool_true_false_are_defined 1 # define __bool_true_false_are_defined 1
#endif #endif
// string.h should be enough but let's include strings.h and memory.h too if // string.h should be enough but let's include strings.h too if it exists
// they exists, since that shouldn't do any harm, but may improve portability. // since that shouldn't do any harm but may improve portability.
#include <string.h> #include <string.h>
#ifdef HAVE_STRINGS_H #ifdef HAVE_STRINGS_H
# include <strings.h> # include <strings.h>
#endif #endif
#ifdef HAVE_MEMORY_H
# include <memory.h>
#endif
// As of MSVC 2013, inline and restrict are supported with // As of MSVC 2013, inline and restrict are supported with
// non-standard keywords. // non-standard keywords.
#if defined(_WIN32) && defined(_MSC_VER) #if defined(_WIN32) && defined(_MSC_VER)