Subject: stdbool.h compatibility with gcc 2.x
To: None <tech-userlevel@netbsd.org>
From: Julio M. Merino Vidal <jmmv84@gmail.com>
List: tech-userlevel
Date: 09/30/2005 16:51:54
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=3Dno)?  Should be trivial to do.

Thanks,

--
Julio M. Merino Vidal <jmmv84@gmail.com>
http://www.livejournal.com/users/jmmv/
The NetBSD Project - http://www.NetBSD.org/