vim/backport-Ruby-missing-function-prototype.patch
2022-01-05 14:31:47 +08:00

30 lines
736 B
Diff

From 0e12140550a63bb1e45771edb89b941959440cfe Mon Sep 17 00:00:00 2001
From: Bram Moolenaar <Bram@vim.org>
Date: Thu, 10 Dec 2020 20:50:34 +0100
Subject: [PATCH] patch 8.2.2126: Ruby: missing function prototype
Problem: Ruby: missing function prototype.
Solution: Add the prototype.
---
src/if_ruby.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/if_ruby.c b/src/if_ruby.c
index d0f8acf..906a902 100644
--- a/src/if_ruby.c
+++ b/src/if_ruby.c
@@ -492,6 +492,10 @@ static void (*dll_rb_gc_writebarrier_unprotect)(VALUE obj);
# endif
# endif
+# if RUBY_VERSION >= 26
+void rb_ary_detransient_stub(VALUE x);
+# endif
+
# if (RUBY_VERSION >= 19) && !defined(PROTO)
# if RUBY_VERSION >= 22
long
--
2.13.7