Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ext/bzip2/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

#ifndef RUBY_19_COMPATIBILITY
# include <rubyio.h>
# include <version.h>
//# include <version.h>
#else
# include <ruby/io.h>
#endif
Expand Down
5 changes: 5 additions & 0 deletions ext/bzip2/writer.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,12 @@ VALUE bz_writer_close(VALUE obj) {
res = bz_writer_internal_close(bzf);
#ifndef RUBINIUS
if (!NIL_P(res) && (bzf->flags & BZ2_RB_INTERNAL)) {
#ifdef RBASIC_CLASS
RBASIC_SET_CLASS(res, rb_cString);
#endif
#ifndef RBASIC_CLASS
RBASIC(res)->klass = rb_cString;
#endif
}
#endif
return res;
Expand Down