This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: PATCH: More stdbool tweaking
- From: Andrew Cagney <ac131313 at cygnus dot com>
- To: Daniel Jacobowitz <drow at mvista dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Thu, 07 Feb 2002 13:19:17 -0500
- Subject: Re: PATCH: More stdbool tweaking
- References: <20020207124821.A18811@nevyn.them.org>
> Sorry for taking so long to get to this.
>
> Including <stdbool.h> where it is available seems to cause more problems
> than it solves. Basically, some versions of <curses.h> drag in <stdbool.h>
> which conflicts with BFD's bool; others conflict with <stdbool.h>. The only
> way I found to get this right was to require consumers of "bfd.h" to include
> <curses.h> beforehand. I'll do the patch to GDB to make this happen
> separately.
If you mean adding a #include <curses.h> to GDB's "defs.h" before the
#inlcude "bfd.h" then that won't work. <curses.h> is ledgendary for its
name space pollution.
Andrew