diff --git a/src/sys/include/sys/types.h b/src/sys/include/sys/types.h index 668287d..2dbbc2c 100644 --- a/src/sys/include/sys/types.h +++ b/src/sys/include/sys/types.h @@ -75,9 +75,13 @@ #ifndef NOBOOL #ifndef __cplusplus +typedef enum {FALSE=0,TRUE=1}bool; +#endif +#else +#ifndef __cplusplus #define FALSE 0 #define TRUE 1 -typedef enum {FALSE=0,TRUE=1}bool; +typedef int bool; #endif #endif