Skip to content

Commit 1ac96f4

Browse files
authored
Update extconf.rb (#158)
- `have_func` includes "ruby.h" by default. - include "ruby/re.h" where `rb_reg_onig_match` is declared.
1 parent 141f9cf commit 1ac96f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/strscan/extconf.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
require 'mkmf'
33
if RUBY_ENGINE == 'ruby'
44
$INCFLAGS << " -I$(top_srcdir)" if $extmk
5-
have_func("onig_region_memsize", "ruby.h")
6-
have_func("rb_reg_onig_match", "ruby.h")
5+
have_func("onig_region_memsize")
6+
have_func("rb_reg_onig_match", "ruby/re.h")
77
create_makefile 'strscan'
88
else
99
File.write('Makefile', dummy_makefile("").join)

0 commit comments

Comments
 (0)