summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSHIBATA Hiroshi <hsbt@ruby-lang.org>2014-12-02 20:51:01 +0900
committerSHIBATA Hiroshi <hsbt@ruby-lang.org>2014-12-02 20:51:01 +0900
commite1f43b360686923bf63262a7fdc6bbd12b752226 (patch)
treeb686a7f007e4fd946961286e80c16413d16c5d52
parentf8c1608629a89910313ee56f2f4b90dd073bc6ad (diff)
downloadpsych-fix-type-data.tar.gz
fixed build error caused by trunk changesfix-type-data
-rw-r--r--ext/psych/psych_emitter.c2
-rw-r--r--ext/psych/psych_parser.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/ext/psych/psych_emitter.c b/ext/psych/psych_emitter.c
index 3fc8170..4ba2381 100644
--- a/ext/psych/psych_emitter.c
+++ b/ext/psych/psych_emitter.c
@@ -42,7 +42,9 @@ static const rb_data_type_t psych_emitter_type = {
"Psych/emitter",
{0, dealloc, 0,},
0, 0,
+#ifdef RUBY_TYPED_FREE_IMMEDIATELY
RUBY_TYPED_FREE_IMMEDIATELY,
+#endif
};
static VALUE allocate(VALUE klass)
diff --git a/ext/psych/psych_parser.c b/ext/psych/psych_parser.c
index 6b72195..faae460 100644
--- a/ext/psych/psych_parser.c
+++ b/ext/psych/psych_parser.c
@@ -62,7 +62,9 @@ static const rb_data_type_t psych_parser_type = {
"Psych/parser",
{0, dealloc, 0,},
0, 0,
+#ifdef RUBY_TYPED_FREE_IMMEDIATELY
RUBY_TYPED_FREE_IMMEDIATELY,
+#endif
};
static VALUE allocate(VALUE klass)