[前][次][番号順一覧][スレッド一覧]

ruby-changes:68530

From: Nobuyoshi <ko1@a...>
Date: Tue, 19 Oct 2021 17:26:42 +0900 (JST)
Subject: [ruby-changes:68530] ae25313e80 (master): [ruby/etc] Remove unnecessary declaration

https://git.ruby-lang.org/ruby.git/commit/?id=ae25313e80

From ae25313e80fcd71ea58721ab5ec50f84701862eb Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Tue, 19 Oct 2021 00:29:57 +0900
Subject: [ruby/etc] Remove unnecessary declaration

Fix https://github.com/ruby/etc/pull/12

https://github.com/ruby/etc/commit/7cbf03d22d
---
 ext/etc/extconf.rb | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/ext/etc/extconf.rb b/ext/etc/extconf.rb
index b6ae7700da..6e7810a5e8 100644
--- a/ext/etc/extconf.rb
+++ b/ext/etc/extconf.rb
@@ -47,10 +47,7 @@ if !File.exist?("#{srcdir}/depend") https://github.com/ruby/ruby/blob/trunk/ext/etc/extconf.rb#L47
   %x[#{RbConfig.ruby} #{srcdir}/mkconstants.rb -o #{srcdir}/constdefs.h]
 end
 
-decl = [
-  "void rb_deprecate_constant(VALUE, const char *);",
-]
-have_func('rb_deprecate_constant(Qnil, "None")', [decl])
+have_func('rb_deprecate_constant(Qnil, "None")')
 
 $distcleanfiles << "constdefs.h"
 
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]