Some C++ compat.
This commit is contained in:
@@ -103,9 +103,11 @@ extern "C" {
|
|||||||
#ifndef HAVE__BOOL
|
#ifndef HAVE__BOOL
|
||||||
typedef unsigned char _Bool;
|
typedef unsigned char _Bool;
|
||||||
#endif /* HAVE_BOOL */
|
#endif /* HAVE_BOOL */
|
||||||
|
#ifndef __cplusplus
|
||||||
#define bool _Bool
|
#define bool _Bool
|
||||||
#define true 1
|
#define true 1
|
||||||
#define false 0
|
#define false 0
|
||||||
|
#endif
|
||||||
#define __bool_true_false_are_defined
|
#define __bool_true_false_are_defined
|
||||||
#endif /* __bool_true_false_are_defined */
|
#endif /* __bool_true_false_are_defined */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user