summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2025-06-12 10:32:49 +0900
committernagachika <nagachika@ruby-lang.org>2025-07-20 18:32:03 +0900
commit2af51ec4803a65481eadd862abc87ac516e08da3 (patch)
treeedddf23df613331fb16b2c354c373c566317e248
parentbf08633e0f3d1b52c2ebb35d89591b6775ccb320 (diff)
[ruby/strscan] Update extconf.rb
(https://github.com/ruby/strscan/pull/158) - `have_func` includes "ruby.h" by default. - include "ruby/re.h" where `rb_reg_onig_match` is declared. https://github.com/ruby/strscan/commit/1ac96f47e9
-rw-r--r--ext/strscan/extconf.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/strscan/extconf.rb b/ext/strscan/extconf.rb
index bd65606a4e..abcbdb3ad2 100644
--- a/ext/strscan/extconf.rb
+++ b/ext/strscan/extconf.rb
@@ -2,8 +2,8 @@
require 'mkmf'
if RUBY_ENGINE == 'ruby'
$INCFLAGS << " -I$(top_srcdir)" if $extmk
- have_func("onig_region_memsize", "ruby.h")
- have_func("rb_reg_onig_match", "ruby.h")
+ have_func("onig_region_memsize")
+ have_func("rb_reg_onig_match", "ruby/re.h")
create_makefile 'strscan'
else
File.write('Makefile', dummy_makefile("").join)