diff options
Diffstat (limited to 'include/ruby/io.h')
-rw-r--r-- | include/ruby/io.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/ruby/io.h b/include/ruby/io.h index b1e94361c3..b230a61b40 100644 --- a/include/ruby/io.h +++ b/include/ruby/io.h @@ -51,12 +51,13 @@ extern "C" { RUBY_SYMBOL_EXPORT_BEGIN -PACKED_STRUCT(typedef struct { +PACKED_STRUCT(struct rb_io_buffer_t { char *ptr; /* off + len <= capa */ int off; int len; int capa; -} rb_io_buffer_t); +}); +typedef struct rb_io_buffer_t rb_io_buffer_t; typedef struct rb_io_t { FILE *stdio_file; /* stdio ptr for read/write if available */ |