summaryrefslogtreecommitdiff
path: root/include/ruby
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2021-05-04 21:29:20 +0000
committerPeter Zhu <peter@peterzhu.ca>2021-05-04 20:38:03 -0400
commitb57c7be6a98a4739569f5ddc45095c8c59fa7512 (patch)
tree582edb03e48fa9556851f02518591f780b84e45b /include/ruby
parent370949aad60e992c26037241c07489c056554ea3 (diff)
Fix compilation errors for c99
ENUM_OVER_INT is sometimes not defined. Use #ifdef instead if #if.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4457
Diffstat (limited to 'include/ruby')
-rw-r--r--include/ruby/internal/fl_type.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ruby/internal/fl_type.h b/include/ruby/internal/fl_type.h
index 4696bfe2d3..1d570c4743 100644
--- a/include/ruby/internal/fl_type.h
+++ b/include/ruby/internal/fl_type.h
@@ -217,7 +217,7 @@ ruby_fl_type {
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))