Permalink
Browse files

query if ruby/st.h exists

  • Loading branch information...
1 parent a3a4c82 commit cfa34b24853078f5b91bbed97d8da84fffac0077 @flori flori committed Jan 2, 2011
Showing with 5 additions and 0 deletions.
  1. +1 −0 ext/json/ext/parser/extconf.rb
  2. +4 −0 ext/json/ext/parser/parser.h
@@ -12,4 +12,5 @@
end
have_header("re.h")
+have_header("ruby/st.h")
create_makefile 'json/ext/parser'
@@ -13,7 +13,11 @@
#else
#define FORCE_UTF8(obj)
#endif
+#ifdef HAVE_RUBY_ST_H
#include "ruby/st.h"
+#else
+#include "st.h"
+#endif
#define option_given_p(opts, key) RTEST(rb_funcall(opts, i_key_p, 1, key))

0 comments on commit cfa34b2

Please sign in to comment.