AnsweredAssumed Answered

56F807, CW 8.3, stdbool.h, where is _Bool defined

Question asked by j... on Aug 24, 2018
Latest reply on Aug 28, 2018 by ZhangJennie

When I added stdbool.h to my project, I got the warning " #warning "MSL support for C99 is not enabled ".

 

I looked at stdbool.h in the folder:

C:\Program Files\Freescale\CodeWarrior for DSC56800E v8.3\M56800 Support\msl\MSL_C\MSL_Common\Include

 

On line 32 it has this define:    " #define bool    _Bool ".

 

Three questions:

--------------------------------------------------------------------------------------

1) Where is _Bool defined?

I grepped the whole directory tree starting at:

" C:\Program Files\Freescale\CodeWarrior for DSC56800E v8.3\ ".

I did not find the definition for _Bool in any file.

--------------------------------------------------------------------------------------

2) What is the proper way to enable C99 mode in the compiler?

--------------------------------------------------------------------------------------

3) Why is that not enabled by default?

Outcomes