Skip to content

Commit

Permalink
1.8 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove committed Jan 16, 2010
1 parent 79b1fb4 commit dcf1bc3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ext/psych/to_ruby.c
Expand Up @@ -13,7 +13,11 @@ static VALUE build_exception(VALUE self, VALUE klass, VALUE mesg)

static VALUE path2class(VALUE self, VALUE path)
{
#ifdef HAVE_RUBY_ENCODING_H
return rb_path_to_class(path);
#else
return rb_path2class(StringValuePtr(path));
#endif
}

void Init_psych_to_ruby(void)
Expand Down

0 comments on commit dcf1bc3

Please sign in to comment.