From ac7c3e706da72ef1bae5121469c5c5de5ddccea2 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Tue, 19 Oct 2021 00:29:57 +0900 Subject: [PATCH] Remove unnecessary declaration Fix #12 --- 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 b6ae770..6e7810a 100644 --- a/ext/etc/extconf.rb +++ b/ext/etc/extconf.rb @@ -47,10 +47,7 @@ %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"