From 3e9a1614966926a6067c977921d5aa270eba5da7 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 12 Nov 2014 16:05:04 +0100 Subject: [PATCH] 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() --- src/if_ruby.c | 3 ++- src/version.c | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/if_ruby.c b/src/if_ruby.c index 06465bd5a..9301b7292 100644 --- a/src/if_ruby.c +++ b/src/if_ruby.c @@ -418,7 +418,8 @@ VALUE rb_num2ulong(VALUE x) # endif # endif -# if defined(USE_RGENGC) && USE_RGENGC + /* Do not generate a prototype here, VALUE isn't always defined. */ +# if defined(USE_RGENGC) && USE_RGENGC && !defined(PROTO) void rb_gc_writebarrier_unprotect_promoted_stub(VALUE obj) { return dll_rb_gc_writebarrier_unprotect_promoted(obj); diff --git a/src/version.c b/src/version.c index 89272be50..f2b1ca7c5 100644 --- a/src/version.c +++ b/src/version.c @@ -741,6 +741,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 511, /**/ 510, /**/ -- 2.40.0