зеркало из https://github.com/github/ruby.git
do not redefine a typedef
duplicated typedef declaration was not allowed in C99.
This commit is contained in:
Родитель
c914382db2
Коммит
097b766b41
|
@ -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 *);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче