0
0
Fork 0
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:
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 #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