aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ruby/ext/grpc/rb_channel_args.c
diff options
context:
space:
mode:
authorGravatar Tim Emiola <temiola@google.com>2015-11-11 15:58:44 -0800
committerGravatar Tim Emiola <temiola@google.com>2015-11-12 16:24:13 -0800
commit9161a82565a0bdaf4622f7f8c8e967d29e904a9c (patch)
tree9fb3fb67cf41eb556955aa22ec79f400b3a2de91 /src/ruby/ext/grpc/rb_channel_args.c
parentc8bd16b7e14f81c7c6e8be7817ed86b53c4c2cc9 (diff)
Corrects compile error on ruby 2.0
Diffstat (limited to 'src/ruby/ext/grpc/rb_channel_args.c')
-rw-r--r--src/ruby/ext/grpc/rb_channel_args.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ruby/ext/grpc/rb_channel_args.c b/src/ruby/ext/grpc/rb_channel_args.c
index 1ba30b69aa..37dd981925 100644
--- a/src/ruby/ext/grpc/rb_channel_args.c
+++ b/src/ruby/ext/grpc/rb_channel_args.c
@@ -44,7 +44,9 @@ static rb_data_type_t grpc_rb_channel_args_data_type = {
{GRPC_RB_GC_NOT_MARKED, GRPC_RB_GC_DONT_FREE, GRPC_RB_MEMSIZE_UNAVAILABLE,
{NULL, NULL}},
NULL, NULL,
+#ifdef RUBY_TYPED_FREE_IMMEDIATELY
RUBY_TYPED_FREE_IMMEDIATELY
+#endif
};
/* A callback the processes the hash key values in channel_args hash */