зеркало из https://github.com/github/ruby.git
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
This commit is contained in:
Родитель
9d3890ab90
Коммит
db433dc39d
|
@ -51,12 +51,12 @@ extern "C" {
|
||||||
|
|
||||||
RUBY_SYMBOL_EXPORT_BEGIN
|
RUBY_SYMBOL_EXPORT_BEGIN
|
||||||
|
|
||||||
typedef PACKED_STRUCT(struct {
|
PACKED_STRUCT(typedef struct {
|
||||||
char *ptr; /* off + len <= capa */
|
char *ptr; /* off + len <= capa */
|
||||||
int off;
|
int off;
|
||||||
int len;
|
int len;
|
||||||
int capa;
|
int capa;
|
||||||
}) rb_io_buffer_t;
|
} rb_io_buffer_t);
|
||||||
|
|
||||||
typedef struct rb_io_t {
|
typedef struct rb_io_t {
|
||||||
FILE *stdio_file; /* stdio ptr for read/write if available */
|
FILE *stdio_file; /* stdio ptr for read/write if available */
|
||||||
|
|
Загрузка…
Ссылка в новой задаче