do not redefine a typedef
duplicated typedef declaration was not allowed in C99.
This commit is contained in:
parent
c914382db2
commit
097b766b41
Notes:
git
2023-08-25 08:28:19 +00:00
@ -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 *);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user