bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

lib/stdbool_.h doesn't honor HAVE__BOOL


From: Albert Chin
Subject: lib/stdbool_.h doesn't honor HAVE__BOOL
Date: Fri, 25 Nov 2005 17:57:48 -0600
User-agent: Mutt/1.5.6i

The HP-UX 11.23/IA aCC6 compiler has bool and _Bool. This generates an
error building something that includes gnulib's auto-generated stdbool.h:
  "../include/stdbool.h", line 84: error #2084: invalid combination of
  type specifiers
    typedef bool _Bool;
                 ^

Patch below fixes this. Of course the 11.23/IA C compiler has a c99
mode. Should I juse use 'c99' instead?

-- 
albert chin (address@hidden)

-- snip snip
2005-11-23  Albert Chin-A-Young  <address@hidden>

        lib/stdbool_.h: Don't define _Bool if compiler has both
        bool and _Bool.

Index: lib/stdbool_.h
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/stdbool_.h,v
retrieving revision 1.6
diff -u -3 -p -r1.6 stdbool_.h
--- lib/stdbool_.h      14 May 2005 06:03:58 -0000      1.6
+++ lib/stdbool_.h      25 Nov 2005 21:14:57 -0000
@@ -81,7 +81,9 @@ typedef enum { _Bool_must_promote_to_int
 #  endif
 # endif
 #else
+#if address@hidden@
 typedef bool _Bool;
+#endif
 #endif
 #define bool _Bool
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]