[PATCH] clean up ANSI-stompers from stdbool.h

Andrew Pinski pinskia@physics.uc.edu
Sat Feb 21 13:45:00 GMT 2004


On Feb 19, 2004, at 16:19, Kelledin wrote:

> I recently discovered the C-specific macros for bool, true, and
> false in stdbool.h, and IMHO they really ought to be excluded
> for strict-ANSI code (see attached patch).
>
> In my case, I stumbled over this when trying to compile XFree86
> 4.3.0.1.  Certain parts of XFree86 will not compile if
> <stdbool.h> gets included, due to those ANSI-stompers.

This is not right as stdbool.h is part of C99 so they are okay in 
strict-ANSI mode.
Just not strict-ANSI C 90/ISO C 90 mode.



Thanks,
Andrew Pinski



More information about the Gcc-patches mailing list