diff options
author | Zachary Scott <e@zzak.io> | 2014-12-27 00:14:43 -0800 |
---|---|---|
committer | Zachary Scott <e@zzak.io> | 2014-12-27 10:21:34 -0800 |
commit | e447a80d873efef022a7aec0d74c6b531fe1ec8e (patch) | |
tree | 336dc5a07dc38990d8f2594e0e3c0dda14290ded /ext/json/ext/parser/parser.rl | |
parent | 55748d36d927443fdb5fbd2497cadf367753df38 (diff) | |
download | json-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.rl | 2 |
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) |