summaryrefslogtreecommitdiff
path: root/ext/etc/extconf.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-04-01 15:18:00 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-04-02 22:01:01 +0900
commit78b6eb9f9f0590d5b66b3578363e2afa70353962 (patch)
treed7e7af51053560519ad8a56ad9e7ea2126edcbe4 /ext/etc/extconf.rb
parentbd0a7d8dd5a9e5e445c5efa7c7155850092889dc (diff)
[ruby/etc] Deprecate names under `Struct`
https://github.com/ruby/etc/commit/25c538120c
Diffstat (limited to 'ext/etc/extconf.rb')
-rw-r--r--ext/etc/extconf.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/etc/extconf.rb b/ext/etc/extconf.rb
index 435fbe7f3d..b6ae7700da 100644
--- a/ext/etc/extconf.rb
+++ b/ext/etc/extconf.rb
@@ -47,6 +47,11 @@ if !File.exist?("#{srcdir}/depend")
%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])
+
$distcleanfiles << "constdefs.h"
create_makefile("etc")