From 3648b9119713f9076927aeab8bf6a4bd1582721f Mon Sep 17 00:00:00 2001 From: Micah Cowan Date: Wed, 30 Sep 2009 19:35:26 -0700 Subject: [PATCH] Unconditionally include stdbool.h. --- src/ChangeLog | 5 +++++ src/sysdep.h | 17 +---------------- 2 files changed, 6 insertions(+), 16 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index d72cf7ef..37436435 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2009-09-30 Micah Cowan + + * sysdep.h: Unconditionally include stdbool.h (gnulib has it for + systems that don't supply it.) + 2009-09-24 Micah Cowan * vms.c: Moved from vms/vms.c. diff --git a/src/sysdep.h b/src/sysdep.h index e0dcdeea..9494b9a0 100644 --- a/src/sysdep.h +++ b/src/sysdep.h @@ -131,23 +131,8 @@ void *alloca (size_t); # include "mswindows.h" #endif -/* Provide support for C99-type boolean type "bool". This blurb comes - straight from the Autoconf 2.59 manual. */ -#if HAVE_STDBOOL_H +/* Provided by gnulib on systems that don't have it: */ # 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 /* Needed for compilation under OS/2 and MSDOS */ #if defined(__EMX__) || defined(MSDOS) -- 2.39.2