Subject: Re: definition of TRUE and FALSE in system headers
To: Krister Walfridsson <cato@df.lth.se>
From: Thomas Dickey <dickey@radix.net>
List: tech-userlevel
Date: 07/23/2007 07:48:39
--YiEDa0DAkWCtVeE4
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Jul 23, 2007 at 01:41:15PM +0200, Krister Walfridsson wrote:
> I have seen some problems with software failing to build on NetBSD=20
> 4.0_BETA2 because NetBSD now defines/redefines TRUE and FALSE when
> you include e.g. sys/ioctl.h (the definition/redefinition
>   #undef TRUE
>   #define TRUE    1
>   #undef FALSE
>   #define FALSE   0
> is in prop/prop_object.h that is included (via sys/dkio.h) from
> sys/ioctl.h)

fwiw, it's _supposed_ to be defined in curses.h (possibly some other places=
).
probably not in sys/ioctl.h - agree.

--=20
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net

--YiEDa0DAkWCtVeE4
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (SunOS)
Comment: For info see http://www.gnupg.org

iD8DBQFGpJWWtIqByHxlDocRAuCiAJ9WSiFUP2UFm5TeLh9LjgEvaEx5dgCgi355
WRWYGPe2oXTvemILYwvgl10=
=zJwm
-----END PGP SIGNATURE-----

--YiEDa0DAkWCtVeE4--