This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH] Workaround more _Bool problems on HP-UX
> From: Richard Henderson <email@example.com>
> > Something like this? (Suitably polished and propagated.)
> > If so, what GCC_VERSION should it be activated on? (3.0?)
> Something like that. I don't know what version. In theory, we could
> use _Bool for any proper C99 compiler, though the HP experience makes
> me wonder how we can identify such a beast.
Well, in system.h we already have this:
# define HAVE__BOOL \
((GCC_VERSION >= 3000) || (__STDC_VERSION__ >= 199901L))
It wasn't clear to me from this thread whether the HP compiler was a
C99 compiler or not and if it matches this test. So I can try using
HAVE__BOOL or simply check for GCC > 3.0.
I'll start with HAVE__BOOL and punt if it still breaks HP. Patch
Kaveh R. Ghazi firstname.lastname@example.org