Subject: Re: stdbool.h compatibility with gcc 2.x
To: Julio M. Merino Vidal <>
From: James Chacon <>
List: tech-userlevel
Date: 09/30/2005 09:51:16
On Fri, Sep 30, 2005 at 04:51:54PM +0200, Julio M. Merino Vidal wrote:
> Hi all,
> I've been noticed that we can't use stdbool.h in programs that form part
> of NetBSD because it is not provided by all ports (e.g., vax, which still
> has an old gcc), thus breaking the build.
> I believe that having a boolean type available (and usable) could make
> our code clearer in some circumstances.
> So, I'm wondering... could it be silly to provide a "fake" stdbool.h header
> that uses an integer type to define the boolean type in those platforms
> that don't have it (i.e., HAVE_GCC3=no)?  Should be trivial to do.

There's only 1 place in-tree right now I think that required stdbool.h
and it was specifically patched for vax already.

What else do we have that requires/needs stdbool now vs waiting for the
next gcc update which will address vax?