summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-07-21 16:56:13 +0000
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-07-21 16:56:13 +0000
commit8cb5f8be6f516be4fd5cd916a769ac18f18777d1 (patch)
treef616fd40067f4769da32f9f88d79eec4792eb847 /include
parent1fe71722e2b37be3518643a2abccb29a0cc78174 (diff)
rb_io_buffer_t: fix packing on gcc
* include/ruby/io.h (rb_io_buffer_t): fix packing on gcc r46892 caused packing to be a no-op on gcc (4.7.2-5, Debian) [Bug #10079][ruby-core:63912] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46894 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include')
-rw-r--r--include/ruby/io.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/ruby/io.h b/include/ruby/io.h
index b1e9436..b230a61 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 */