In C99 you need to include stdbool.h
, from the draft C99 standard section 7.16
Boolean type and values says:
1 The header defines four macros.
2 The macro
bool
expands to _Bool.
If C99 is not supported then you need to define your own bool, for example:
#define bool int
#define true 1
#define false 0