0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-07-26 20:38:37 +02:00

rb: Remove defines/includes related to booltype for __cplusplus.

This commit is contained in:
Jason Volk 2016-08-17 19:48:44 -07:00
parent 096f7b9ff7
commit 13a18ace2b

View file

@ -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