summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2025-06-12 10:32:49 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2025-07-24 12:21:34 +0900
commiteba9fa20b5421deda53961f09dadc04f3f92ff7e (patch)
tree16418d8a9987c5fd281c1d58b1a721531a95c9ea
parent9f00b8872d3e294312c99150f1c34b6b3fa74985 (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)