]> sjero.net Git - wget/commitdiff
Gnulib stdbool.h fix.
authorMicah Cowan <micah@cowan.name>
Tue, 23 Oct 2007 19:34:10 +0000 (12:34 -0700)
committerMicah Cowan <micah@cowan.name>
Tue, 23 Oct 2007 19:34:10 +0000 (12:34 -0700)
ChangeLog
lib/stdbool.in.h
lib/stdint.in.h

index 61cefef870de693c639fbadec1146b815398a229..3ecf290986e353e31d7002d8b6d72986e31665b5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-10-23  Micah Cowan  <micah@schmendrick>
+
+       * lib/stdbool.in.h, lib/stdint.in.h: gnulib-tool --update.
+       Includes fix for broken stdbool.h on Tru64.
+
 2007-10-22  Micah Cowan  <micah@cowan.name>
 
        * po/*.po: Refresh from TP and update-po.
index 150a0102e1de452e33a65da2f3771d202e7f010b..2784a502bf49748383e89c47637f2bc2ce87b613 100644 (file)
@@ -97,10 +97,11 @@ typedef bool _Bool;
           "warning: _Bool is a keyword in ISO C99".
         Use of an enum type, with IRIX cc, leads to a stupid
           "warning(1185): enumerated type mixed with another type".
-        The only benefit of the enum type, debuggability, is not important
-        with these compilers.  So use 'signed char' and no typedef.  */
+        Even the existence of an enum type, without a typedef,
+          "Invalid enumerator. (badenum)" with HP-UX cc on Tru64.
+        The only benefit of the enum, debuggability, is not important
+        with these compilers.  So use 'signed char' and no enum.  */
 #  define _Bool signed char
-enum { false = 0, true = 1 };
 # else
    /* With this compiler, trust the _Bool type if the compiler has it.  */
 #  if !@HAVE__BOOL@
index 121118cff7100dacf1ab7dff01d1fdaa7df56080..ef0c335975678a579640f556bc3dcbe8636bfd63 100644 (file)
 # define uintmax_t unsigned long int
 #endif
 
+/* Verify that intmax_t and uintmax_t have the same size.  Too much code
+   breaks if this is not the case.  If this check fails, the reason is likely
+   to be found in the autoconf macros.  */
+typedef int _verify_intmax_size[2 * (sizeof (intmax_t) == sizeof (uintmax_t)) - 1];
+
 /* 7.18.2. Limits of specified-width integer types */
 
 #if ! defined __cplusplus || defined __STDC_LIMIT_MACROS