Use stdbool
This commit is contained in:
parent
8db71e7851
commit
8d36ebe392
10 changed files with 42 additions and 40 deletions
|
@ -355,7 +355,9 @@
|
|||
// Structures Definition
|
||||
//----------------------------------------------------------------------------------
|
||||
// Boolean type
|
||||
#if !defined(__cplusplus) && !defined(bool)
|
||||
#if defined(__STDC__) && __STDC_VERSION__ >= 199901L
|
||||
#include <stdbool.h>
|
||||
#elif !defined(__cplusplus) && !defined(bool)
|
||||
typedef enum { false, true } bool;
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue