This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: gcc's <stdbool.h> is broken
- To: Bruno Haible <haible at ilog dot fr>
- Subject: Re: gcc's <stdbool.h> is broken
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- Date: Mon, 5 Feb 2001 19:03:33 +0000 (GMT)
- cc: <gcc-bugs at gcc dot gnu dot org>, Ulrich Drepper <drepper at cygnus dot com>
On Mon, 5 Feb 2001, Bruno Haible wrote:
> ISO C 99 section 7.16 specifies that the macros 'false' and 'true'
> shall be usable in preprocessor expressions. But gcc 2.95.2/2.95.3
> gets this wrong.
Don't use the 2.95.2/2.95.3 <stdbool.h> - 2.95.2 predates the publication
of C99, and its <stdbool.h> was based on an old draft (although it doesn't
conform to the oldest draft I have around - from before the _Bool builtin
type was added). The GCC 3.0 release notes clearly note (or will when
they're written) that the conforming _Bool and <stdbool.h> in 3.0 is not
binary compatible with the 2.95.2 boolean type (though it is compatible
with C++ bool in the new ABI).
--
Joseph S. Myers
jsm28@cam.ac.uk