[前][次][番号順一覧][スレッド一覧]

ruby-changes:34809

From: nobu <ko1@a...>
Date: Mon, 21 Jul 2014 16:04:29 +0900 (JST)
Subject: [ruby-changes:34809] nobu:r46892 (trunk): ruby/io.h: fix rb_io_buffer_t

nobu	2014-07-21 16:04:21 +0900 (Mon, 21 Jul 2014)

  New Revision: 46892

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=46892

  Log:
    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.

  Modified files:
    trunk/include/ruby/io.h
Index: include/ruby/io.h
===================================================================
--- include/ruby/io.h	(revision 46891)
+++ include/ruby/io.h	(revision 46892)
@@ -51,12 +51,12 @@ extern "C" { https://github.com/ruby/ruby/blob/trunk/include/ruby/io.h#L51
 
 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 */

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]