From c4d9dcacc96376d3b605e81c063292b66ac35d8f Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Fri, 2 Dec 2022 16:51:05 +0100 Subject: [PATCH] Assume exists MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ISO C99 requires . Many files in the project already include unconditionally, so it's reasonable to assume that it is always available. Link: Cc: Christian Göttsche Cc: Iker Pedrosa Cc: Mike Frysinger Signed-off-by: Alejandro Colomar --- configure.ac | 2 -- lib/defines.h | 16 +--------------- 2 files changed, 1 insertion(+), 17 deletions(-) diff --git a/configure.ac b/configure.ac index a22b47bd..c39da0f0 100644 --- a/configure.ac +++ b/configure.ac @@ -36,8 +36,6 @@ LT_INIT dnl Checks for libraries. dnl Checks for header files. -AC_HEADER_STDBOOL - AC_CHECK_HEADERS(crypt.h errno.h fcntl.h limits.h unistd.h sys/time.h utmp.h \ utmpx.h termios.h termio.h sgtty.h sys/ioctl.h syslog.h paths.h \ utime.h ulimit.h sys/capability.h sys/random.h sys/resource.h \ diff --git a/lib/defines.h b/lib/defines.h index 7950cdfa..a47f2571 100644 --- a/lib/defines.h +++ b/lib/defines.h @@ -6,21 +6,7 @@ #include "config.h" -#if HAVE_STDBOOL_H -# include -#else -# if ! HAVE__BOOL -# ifdef __cplusplus -typedef bool _Bool; -# else -typedef unsigned char _Bool; -# endif -# endif -# define bool _Bool -# define false (0) -# define true (1) -# define __bool_true_false_are_defined 1 -#endif +#include /* Take care of NLS matters. */ #ifdef S_SPLINT_S