when the c99 standard header <stdbool.h> is include, a conflict with gctypes occur.
It can be resolved with the followings changes :
Code: Select all
// bool is a standard type in cplusplus, but not in c
#ifndef __cplusplus
/** C++ compatible bool for C
*/
typedef enum { false, true } bool;
#endif
Code: Select all
// bool is a standard type in cplusplus, but not in c89 standard.
#ifndef __cplusplus
/** C++ compatible bool for c
*/
#ifndef bool
typedef enum { false, true } bool;
#endif
#endif