Skip to content

Commit 3adb3c8

Browse files
committed
updated for version 7.4.511
Problem: Generating proto for if_ruby.c uses type not defined elsewhere. Solution: Do not generate a prototype for rb_gc_writebarrier_unprotect_promoted()
1 parent 310cb24 commit 3adb3c8

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
@@ -418,7 +418,8 @@ VALUE rb_num2ulong(VALUE x)
418418
# endif
419419
# endif
420420

421-
# if defined(USE_RGENGC) && USE_RGENGC
421+
/* Do not generate a prototype here, VALUE isn't always defined. */
422+
# if defined(USE_RGENGC) && USE_RGENGC && !defined(PROTO)
422423
void rb_gc_writebarrier_unprotect_promoted_stub(VALUE obj)
423424
{
424425
return dll_rb_gc_writebarrier_unprotect_promoted(obj);

src/version.c

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

742742
static int included_patches[] =
743743
{ /* Add new patch number below this line */
744+
/**/
745+
511,
744746
/**/
745747
510,
746748
/**/

0 commit comments

Comments
 (0)