summaryrefslogtreecommitdiff
path: root/ext/json
diff options
context:
space:
mode:
Diffstat (limited to 'ext/json')
-rw-r--r--ext/json/ext/extconf_parser.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/json/ext/extconf_parser.rb b/ext/json/ext/extconf_parser.rb
index 9662e9a..bdc0581 100644
--- a/ext/json/ext/extconf_parser.rb
+++ b/ext/json/ext/extconf_parser.rb
@@ -8,6 +8,9 @@ if CONFIG['CC'] =~ /gcc/
$CFLAGS << ' -Wall'
#$CFLAGS.gsub!(/ -O[\dsz]?/, ' -O0 -ggdb')
end
+if RUBY_VERSION >= '1.9'
+ $CFLAGS << ' -DRUBY_19'
+end
have_header("ruby/st.h") || have_header("st.h")
have_header("re.h")