Skip to content

Commit 9fd8abb

Browse files
committed
Compatibility of rb_io_t.
1 parent 253679e commit 9fd8abb

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

include/ruby/io.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ typedef enum {
7070
} rb_io_event_t;
7171

7272
struct rb_io_t;
73+
typedef struct rb_io_t rb_io_t;
7374

7475
/** Decomposed encoding flags (e.g. `"enc:enc2""`). */
7576
/*

internal/io.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ PACKED_STRUCT_UNALIGNED(struct rb_io_buffer_t {
3535
typedef struct rb_io_buffer_t rb_io_buffer_t;
3636

3737
/** Ruby's IO, metadata and buffers. */
38-
typedef struct rb_io_t {
38+
struct rb_io_t {
3939

4040
/** The IO's Ruby level counterpart. */
4141
VALUE self;
@@ -136,7 +136,7 @@ typedef struct rb_io_t {
136136
* the operation can be cancelled.
137137
*/
138138
struct list_head blocking_list;
139-
} rb_io_t;
139+
};
140140

141141
/* io.c */
142142
void ruby_set_inplace_mode(const char *);

0 commit comments

Comments
 (0)