As far as I can see there are 3 ways to use booleans in c
#defin
You can test if bool is defined in c99 stdbool.h with
#ifndef __bool_true_false_are_defined || __bool_true_false_are_defined == 0 //typedef or define here #endif