Additional check for bool header definition
This commit is contained in:
parent
4b1bc7f65e
commit
5370fe18e0
1 changed files with 1 additions and 2 deletions
|
@ -296,9 +296,8 @@
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
#ifndef __cplusplus
|
#ifndef __cplusplus
|
||||||
// Boolean type
|
// Boolean type
|
||||||
#if !defined(_STDBOOL_H)
|
#if !defined(_STDBOOL_H) || !defined(__STDBOOL_H) // CLang uses second form
|
||||||
typedef enum { false, true } bool;
|
typedef enum { false, true } bool;
|
||||||
#define _STDBOOL_H
|
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue