diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2020-02-16 11:18:28 +0200 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2020-02-16 12:24:13 +0200 |
commit | 2d4cef954feba82073951358466a1d614141cf33 (patch) | |
tree | 94185d4ce3b4a69259b315d6dc802e4e28f65970 /src/common | |
parent | Build: Bump Autoconf and Libtool version requirements. (diff) | |
download | xz-2d4cef954feba82073951358466a1d614141cf33.tar.xz |
sysdefs.h: Omit the conditionals around string.h and limits.h.
string.h is used unconditionally elsewhere in the project and
configure has always stopped if limits.h is missing, so these
headers must have been always available even on the weirdest
systems.
Diffstat (limited to 'src/common')
-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 e056ca4a..b6918179 100644 --- a/src/common/sysdefs.h +++ b/src/common/sysdefs.h @@ -44,9 +44,7 @@ // Some pre-C99 systems have SIZE_MAX in limits.h instead of stdint.h. The // limits are also used to figure out some macros missing from pre-C99 systems. -#ifdef HAVE_LIMITS_H -# include <limits.h> -#endif +#include <limits.h> // Be more compatible with systems that have non-conforming inttypes.h. // We assume that int is 32-bit and that long is either 32-bit or 64-bit. @@ -153,9 +151,7 @@ typedef unsigned char _Bool; // 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. -#ifdef HAVE_STRING_H -# include <string.h> -#endif +#include <string.h> #ifdef HAVE_STRINGS_H # include <strings.h> |