mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 10:12:39 +01:00
rb: Remove defines/includes related to booltype for __cplusplus.
This commit is contained in:
parent
096f7b9ff7
commit
13a18ace2b
1 changed files with 9 additions and 12 deletions
|
@ -8,21 +8,18 @@ extern "C" {
|
||||||
#define RB_IPV6 1
|
#define RB_IPV6 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef __cplusplus
|
||||||
#ifdef HAVE_STDBOOL_H
|
#ifdef HAVE_STDBOOL_H
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#else
|
#else
|
||||||
#ifndef HAVE__BOOL
|
#ifndef HAVE__BOOL
|
||||||
#ifdef __cplusplus
|
|
||||||
typedef bool _Bool;
|
|
||||||
#else
|
|
||||||
#define _Bool signed char
|
#define _Bool signed char
|
||||||
#endif
|
#endif
|
||||||
|
#define bool _Bool
|
||||||
|
#define false 0
|
||||||
|
#define true 1
|
||||||
|
#define __bool_true_false_are_defined 1
|
||||||
#endif
|
#endif
|
||||||
#define bool _Bool
|
|
||||||
#define false 0
|
|
||||||
#define true 1
|
|
||||||
#define __bool_true_false_are_defined 1
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue