I want to find the _Bool definition on my system, so for systems where it\'s missing I can implement it. I\'ve seen various definitions for it here and on other
_Bool
$ echo '_Bool a;' | gcc -c -x c - $ echo $? 0 $ echo 'bool a;' | gcc -x c -c - :1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘a’
This demonstrates that _Bool is a built-in type and bool is not, by compiling a single variable declaration with no includes.
bool