From 13a18ace2b8360633f41c96bd98da38e68376d9d Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Wed, 17 Aug 2016 19:48:44 -0700 Subject: [PATCH] rb: Remove defines/includes related to booltype for __cplusplus. --- include/rb/system.h | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/include/rb/system.h b/include/rb/system.h index 066533ac3..5d09a17ea 100644 --- a/include/rb/system.h +++ b/include/rb/system.h @@ -8,21 +8,18 @@ extern "C" { #define RB_IPV6 1 #endif - -#ifdef HAVE_STDBOOL_H - #include -#else - #ifndef HAVE__BOOL - #ifdef __cplusplus - typedef bool _Bool; - #else +#ifndef __cplusplus + #ifdef HAVE_STDBOOL_H + #include + #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