Thanks for the info Daniel.
If I #include <stdbool.h> I get:
Warning : preprocessor warning directive
stdbool.h line 20 #warning "MSL support for C99 is not enabled"
As a result, bool is still not understood.
Going into the language settings panel and checking "Enable C99
Extensions" once again does nothing to fix the warning.
What I did try was to goto C:\Program Files\Freescale\
CodeWarrior for ColdFire V6.4\
E68K_Support\msl\MSL_C\MSL_E68k\
Include\
and edit ansi_prefix.CF.size.h and then change
#define _MSL_C99 from 0 to 1.
This fixes the problem, but my question is, is it safe to edit
this file. I don't want to mess anything up down the road.
Of course, like you say I could typedef my own, which I suppose
would look like:
Code:
typedef unsigned char bool;#define FALSE 0#define TRUE 1
Regards,
Neil.