This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: More stdbool tweaking


On Thu, Feb 07, 2002 at 01:19:17PM -0500, Andrew Cagney wrote:
> >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.

No, I have a patch in my working directory which changes those files
which already include <curses.h>: utils.c and tui/.  They now pull it
in before bfd.h, and everything is happy.

-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]