diff options
Diffstat (limited to 'ext/json/parser/extconf.rb')
-rw-r--r-- | ext/json/parser/extconf.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ext/json/parser/extconf.rb b/ext/json/parser/extconf.rb index 64d1716a7a..4a10dd2ed6 100644 --- a/ext/json/parser/extconf.rb +++ b/ext/json/parser/extconf.rb @@ -1,5 +1,10 @@ require 'mkmf' require 'rbconfig' -have_header("re.h") +if RUBY_VERSION < "1.9" + have_header("re.h") +else + have_header("ruby/re.h") + have_header("ruby/encoding.h") +end create_makefile 'json/ext/parser' |