Skip to content

Commit 6abda99

Browse files
committed
patch 8.0.0163: cannot build with Ruby 2.4
Problem: Ruby 2.4 no longer supports rb_cFixnum. Solution: move rb_cFixnum into an #ifdef. (Kazuki Sakamoto, closes #1365)
1 parent 009c7b2 commit 6abda99

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/if_ruby.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,9 +514,10 @@ static struct
514514
{
515515
{"rb_assoc_new", (RUBY_PROC*)&dll_rb_assoc_new},
516516
{"rb_cFalseClass", (RUBY_PROC*)&dll_rb_cFalseClass},
517-
{"rb_cFixnum", (RUBY_PROC*)&dll_rb_cFixnum},
518517
# if defined(USE_RUBY_INTEGER)
519518
{"rb_cInteger", (RUBY_PROC*)&dll_rb_cInteger},
519+
# else
520+
{"rb_cFixnum", (RUBY_PROC*)&dll_rb_cFixnum},
520521
# endif
521522
# if defined(DYNAMIC_RUBY_VER) && DYNAMIC_RUBY_VER >= 20
522523
{"rb_cFloat", (RUBY_PROC*)&dll_rb_cFloat},

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,8 @@ static char *(features[]) =
764764

765765
static int included_patches[] =
766766
{ /* Add new patch number below this line */
767+
/**/
768+
163,
767769
/**/
768770
162,
769771
/**/

0 commit comments

Comments
 (0)