summaryrefslogtreecommitdiff
path: root/ext/json/ext/parser/parser.rl
diff options
context:
space:
mode:
authorZachary Scott <e@zzak.io>2014-12-27 00:14:43 -0800
committerZachary Scott <e@zzak.io>2014-12-27 10:21:34 -0800
commite447a80d873efef022a7aec0d74c6b531fe1ec8e (patch)
tree336dc5a07dc38990d8f2594e0e3c0dda14290ded /ext/json/ext/parser/parser.rl
parent55748d36d927443fdb5fbd2497cadf367753df38 (diff)
downloadjson-e447a80d873efef022a7aec0d74c6b531fe1ec8e.tar.gz
RUBY_TYPED_FREE_IMMEDIATELY isn't always available
Diffstat (limited to 'ext/json/ext/parser/parser.rl')
-rw-r--r--ext/json/ext/parser/parser.rl2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/json/ext/parser/parser.rl b/ext/json/ext/parser/parser.rl
index 34e30f4..391d6fb 100644
--- a/ext/json/ext/parser/parser.rl
+++ b/ext/json/ext/parser/parser.rl
@@ -849,8 +849,10 @@ static size_t JSON_memsize(const void *ptr)
static const rb_data_type_t JSON_Parser_type = {
"JSON/Parser",
{JSON_mark, JSON_free, JSON_memsize,},
+#ifdef RUBY_TYPED_FREE_IMMEDIATELY
0, 0,
RUBY_TYPED_FREE_IMMEDIATELY,
+#endif
};
static VALUE cJSON_parser_s_allocate(VALUE klass)