summaryrefslogtreecommitdiff
path: root/ext/strscan/extconf.rb
diff options
context:
space:
mode:
authorSutou Kouhei <kou@cozmixng.org>2019-10-14 12:40:50 +0900
committerGitHub <noreply@github.com>2019-10-14 12:40:50 +0900
commit95c420c4a65ca2e7f3edf27134ad33691959296c (patch)
tree844e207d891996ecf7c60950d8a1e652be6d1938 /ext/strscan/extconf.rb
parent6fa3492362dc91cfec7eb4fd55918791da5a34fb (diff)
Import StringScanner 1.0.3 (#2553)
Notes
Notes: Merged-By: kou <kou@clear-code.com>
Diffstat (limited to 'ext/strscan/extconf.rb')
-rw-r--r--ext/strscan/extconf.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/strscan/extconf.rb b/ext/strscan/extconf.rb
index 714fa99fae..f0ecbf85d8 100644
--- a/ext/strscan/extconf.rb
+++ b/ext/strscan/extconf.rb
@@ -1,4 +1,5 @@
# frozen_string_literal: true
require 'mkmf'
-$INCFLAGS << " -I$(top_srcdir)"
+$INCFLAGS << " -I$(top_srcdir)" if $extmk
+have_func("onig_region_memsize", "ruby.h")
create_makefile 'strscan'