Identifier bool ist in c undefiniert

//You can surround your code with
#ifndef __cplusplus
typedef unsigned char bool;
static const bool False = 0;
static const bool True = 1;
#endif
Thoughtless Tapir