]> sjero.net Git - wget/commitdiff
Unconditionally include stdbool.h.
authorMicah Cowan <micah@cowan.name>
Thu, 1 Oct 2009 02:35:26 +0000 (19:35 -0700)
committerMicah Cowan <micah@cowan.name>
Thu, 1 Oct 2009 02:35:26 +0000 (19:35 -0700)
src/ChangeLog
src/sysdep.h

index d72cf7efd95f384ea001226a97d508dc7650d3bf..37436435381a0e6138834e3b20cd1413e0cf77da 100644 (file)
@@ -1,3 +1,8 @@
+2009-09-30  Micah Cowan  <micah@cowan.name>
+
+       * sysdep.h: Unconditionally include stdbool.h (gnulib has it for
+       systems that don't supply it.)
+
 2009-09-24  Micah Cowan  <micah@cowan.name>
 
        * vms.c: Moved from vms/vms.c.
index e0dcdeeaf45a3fade5edbf91ab05d8663db127e9..9494b9a047039aa2b93ba0cc96b1d923958cac05 100644 (file)
@@ -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 <stdbool.h>
-#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)