Skip to content

Commit 95fb084

Browse files
committed
Run have_func with the header providing the declarations
1 parent 829f4bc commit 95fb084

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/json/ext/parser/extconf.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22
require 'mkmf'
33

4-
have_func("rb_enc_interned_str", "ruby.h") # RUBY_VERSION >= 3.0
4+
have_func("rb_enc_interned_str", "ruby/encoding.h") # RUBY_VERSION >= 3.0
55
have_func("rb_hash_new_capa", "ruby.h") # RUBY_VERSION >= 3.2
66
have_func("rb_hash_bulk_insert", "ruby.h") # Missing on TruffleRuby
77
have_func("strnlen", "string.h") # Missing on Solaris 10

0 commit comments

Comments
 (0)