From 97d493f672bd6b4e246812e8110413748560140d Mon Sep 17 00:00:00 2001 From: Erwin Janssen Date: Wed, 28 Dec 2016 20:42:43 +0100 Subject: [PATCH] Use in favor of The header is obsolete in favor of , which is part of the standard C library. --- configure.ac | 2 +- lib/common/arith.h | 3 --- lib/fdpgen/layout.c | 6 ------ lib/sfdpgen/sfdpinit.c | 6 ------ windows/include/config.h | 6 ------ 5 files changed, 1 insertion(+), 22 deletions(-) diff --git a/configure.ac b/configure.ac index dc11bb188..5af4945c5 100644 --- a/configure.ac +++ b/configure.ac @@ -418,7 +418,7 @@ dnl Checks for header files # AC_HEADER_STDC AC_CHECK_HEADERS(malloc.h \ - fcntl.h search.h values.h limits.h termios.h \ + fcntl.h search.h termios.h \ unistd.h strings.h \ sys/time.h sys/types.h sys/select.h \ sys/stat.h sys/mman.h \ diff --git a/lib/common/arith.h b/lib/common/arith.h index c1811deb1..295acd016 100644 --- a/lib/common/arith.h +++ b/lib/common/arith.h @@ -23,9 +23,6 @@ #endif #include -#ifdef HAVE_VALUES_H -#include -#endif #include #ifdef __cplusplus diff --git a/lib/fdpgen/layout.c b/lib/fdpgen/layout.c index 3d5760c90..c61bd0c5a 100644 --- a/lib/fdpgen/layout.c +++ b/lib/fdpgen/layout.c @@ -32,13 +32,7 @@ #define FDP_PRIVATE 1 #include "config.h" -#ifdef HAVE_LIMITS_H #include -#else -#ifdef HAVE_VALUES_H -#include -#endif -#endif #include #include #include "tlayout.h" diff --git a/lib/sfdpgen/sfdpinit.c b/lib/sfdpgen/sfdpinit.c index f2719fede..4b07a5323 100644 --- a/lib/sfdpgen/sfdpinit.c +++ b/lib/sfdpgen/sfdpinit.c @@ -13,13 +13,7 @@ #include "config.h" -#ifdef HAVE_LIMITS_H #include -#else -#ifdef HAVE_VALUES_H -#include -#endif -#endif #include #include #include diff --git a/windows/include/config.h b/windows/include/config.h index 00d9b7a3d..b6fda2965 100644 --- a/windows/include/config.h +++ b/windows/include/config.h @@ -171,9 +171,6 @@ /* Define if you have the Z library */ #define HAVE_LIBZ 1 -/* Define to 1 if you have the header file. */ -#define HAVE_LIMITS_H 1 - /* Define to 1 if you have the `lrand48' function. */ /* #undef HAVE_LRAND48 */ @@ -278,9 +275,6 @@ /* Define to 1 if you have the header file. */ //#define HAVE_UNISTD_H 1 -/* Define to 1 if you have the header file. */ -//#define HAVE_VALUES_H 1 - /* Define to 1 if you have the `vsnprintf' function. */ #define HAVE_VSNPRINTF 1 -- 2.40.0