From 9fabe8eea326282c58a4fd3884e0999bb1d49f8b Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 30 Jan 2017 04:54:52 +0000 Subject: fix up r57461 * internal.h: Microsoft Visual C++ has never supported C99 yet, even in 2017. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57462 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- internal.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/internal.h b/internal.h index f57b6f9c81..fada2e8023 100644 --- a/internal.h +++ b/internal.h @@ -29,10 +29,13 @@ extern "C" { #ifndef __bool_true_false_are_defined # ifndef __cplusplus -# error :FIXME: You are the first one who use pre-C99 compiler. -# error :FIXME: Please add appropriate definition here. -# error :FIXME: This part is intentionally left undefined, -# error :FIXME: because the author no longer have such environment. +# undef bool +# undef false +# undef true +# define bool signed char +# define false 0 +# define true 1 +# define __bool_true_false_are_defined 1 # endif #endif -- cgit v1.2.3