[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
This commit is contained in:
parent
7854b71e7f
commit
4585ccd90f
@ -2,8 +2,8 @@
|
|||||||
require 'mkmf'
|
require 'mkmf'
|
||||||
if RUBY_ENGINE == 'ruby'
|
if RUBY_ENGINE == 'ruby'
|
||||||
$INCFLAGS << " -I$(top_srcdir)" if $extmk
|
$INCFLAGS << " -I$(top_srcdir)" if $extmk
|
||||||
have_func("onig_region_memsize", "ruby.h")
|
have_func("onig_region_memsize")
|
||||||
have_func("rb_reg_onig_match", "ruby.h")
|
have_func("rb_reg_onig_match", "ruby/re.h")
|
||||||
create_makefile 'strscan'
|
create_makefile 'strscan'
|
||||||
else
|
else
|
||||||
File.write('Makefile', dummy_makefile("").join)
|
File.write('Makefile', dummy_makefile("").join)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user