duplicated typedef declaration was not allowed in C99.
This commit is contained in:
卜部昌平 2023-08-25 13:51:07 +09:00
Родитель c914382db2
Коммит 097b766b41
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -16,7 +16,7 @@ struct rb_io;
#include "ruby/io.h" /* for rb_io_t */ #include "ruby/io.h" /* for rb_io_t */
/** Ruby's IO, metadata and buffers. */ /** Ruby's IO, metadata and buffers. */
typedef struct rb_io { struct rb_io {
/** The IO's Ruby level counterpart. */ /** The IO's Ruby level counterpart. */
VALUE self; VALUE self;
@ -108,7 +108,7 @@ typedef struct rb_io {
* The timeout associated with this IO when performing blocking operations. * The timeout associated with this IO when performing blocking operations.
*/ */
VALUE timeout; VALUE timeout;
} rb_io_t; };
/* io.c */ /* io.c */
void ruby_set_inplace_mode(const char *); void ruby_set_inplace_mode(const char *);