This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: PATCH, Re: gprof failed to compile
On Thu, Jan 31, 2002 at 08:50:14AM -0800, Doug Evans wrote:
> Daniel Jacobowitz writes:
> > The whole point was that we may now typedef bool in "bfd.h".
>
> Defining `bool' in any application-specific header seems wrong.
>
> Why not move it to its own file (given that stdbool.h is the way it is)?
> One might even put that file in devo/include (or is that toplevel/include :-).
> One could then conditionalize its usage on AC_CHECK_HEADER(stdbool.h)
> (plus additional smarts as necessary).
>
> Just a half-thought-out idea.
The difficulty is that bfd.h can not use anything based on
autoconfiguration. Think of that what you may.
What's wrong with handling all cases of bool in bfd.h, since we've
historically handled most of it there?
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer