mirror of
https://github.com/matrix-construct/construct
synced 2024-12-01 19:22:53 +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
|
||||
#ifndef __cplusplus
|
||||
#ifdef HAVE_STDBOOL_H
|
||||
#include <stdbool.h>
|
||||
#else
|
||||
#ifndef HAVE__BOOL
|
||||
#ifdef __cplusplus
|
||||
typedef bool _Bool;
|
||||
#else
|
||||
#ifndef HAVE__BOOL
|
||||
#define _Bool signed char
|
||||
#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