summaryrefslogtreecommitdiff
path: root/include/ruby
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-07-21 07:04:21 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-07-21 07:04:21 +0000
commitdb433dc39d07449184a908d417919e3de8b70405 (patch)
treee367d1422049c255dd275edd5d0547f33555e4ae /include/ruby
parent9d3890ab909277c01c3106a69c3fb19b56cddcc1 (diff)
ruby/io.h: fix rb_io_buffer_t
* include/ruby/io.h (rb_io_buffer_t): fix usage of PACKED_STRUCT(). it must surround the whole declaration on VC. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46892 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby')
-rw-r--r--include/ruby/io.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/ruby/io.h b/include/ruby/io.h
index 8f0367707e..b1e94361c3 100644
--- a/include/ruby/io.h
+++ b/include/ruby/io.h
@@ -51,12 +51,12 @@ extern "C" {
RUBY_SYMBOL_EXPORT_BEGIN
-typedef PACKED_STRUCT(struct {
+PACKED_STRUCT(typedef struct {
char *ptr; /* off + len <= capa */
int off;
int len;
int capa;
-}) rb_io_buffer_t;
+} rb_io_buffer_t);
typedef struct rb_io_t {
FILE *stdio_file; /* stdio ptr for read/write if available */