ruby-changes:66052
From: Peter <ko1@a...>
Date: Wed, 5 May 2021 09:38:17 +0900 (JST)
Subject: [ruby-changes:66052] b57c7be6a9 (master): Fix compilation errors for c99
https://git.ruby-lang.org/ruby.git/commit/?id=b57c7be6a9 From b57c7be6a98a4739569f5ddc45095c8c59fa7512 Mon Sep 17 00:00:00 2001 From: Peter Zhu <peter@p...> Date: Tue, 4 May 2021 21:29:20 +0000 Subject: Fix compilation errors for c99 ENUM_OVER_INT is sometimes not defined. Use #ifdef instead if #if. --- include/ruby/internal/fl_type.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/ruby/internal/fl_type.h b/include/ruby/internal/fl_type.h index 4696bfe..1d570c4 100644 --- a/include/ruby/internal/fl_type.h +++ b/include/ruby/internal/fl_type.h @@ -217,7 +217,7 @@ ruby_fl_type { https://github.com/ruby/ruby/blob/trunk/include/ruby/internal/fl_type.h#L217 RBIMPL_FL_USER_N(16), RBIMPL_FL_USER_N(17), RBIMPL_FL_USER_N(18), -#if ENUM_OVER_INT +#ifdef ENUM_OVER_INT RBIMPL_FL_USER_N(19), #else # define RUBY_FL_USER19 (RBIMPL_VALUE_ONE<<(RUBY_FL_USHIFT+19)) -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/