Suboptimal warning formatting with `bool` type in C

Joseph Myers joseph@codesourcery.com
Wed Nov 1 23:13:06 GMT 2023


On Wed, 1 Nov 2023, peter0x44 via Gcc wrote:

> Why is #define used instead of typedef? I can't imagine how this could
> possibly break any existing code.

That's how stdbool.h is specified up to C17.  In C23, bool is a keyword 
instead.

-- 
Joseph S. Myers
joseph@codesourcery.com


More information about the Gcc mailing list