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
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef HAVE_STDBOOL_H
|
||||
#include <stdbool.h>
|
||||
#else
|
||||
#ifndef HAVE__BOOL
|
||||
#ifdef __cplusplus
|
||||
typedef bool _Bool;
|
||||
#else
|
||||
#ifndef __cplusplus
|
||||
#ifdef HAVE_STDBOOL_H
|
||||
#include <stdbool.h>
|
||||
#else
|
||||
#ifndef HAVE__BOOL
|
||||
#define _Bool signed char
|
||||
#endif
|
||||
#define bool _Bool
|
||||
#define false 0
|
||||
#define true 1
|
||||
#define __bool_true_false_are_defined 1
|
||||
#endif
|
||||
#define bool _Bool
|
||||
#define false 0
|
||||
#define true 1
|
||||
#define __bool_true_false_are_defined 1
|
||||
#endif
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue