Skip to content

Commit

Permalink
do not redefine a typedef
Browse files Browse the repository at this point in the history
duplicated typedef declaration was not allowed in C99.
  • Loading branch information
shyouhei committed Aug 25, 2023
1 parent 142a7fc commit 8fddaca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ struct rb_io;
#include "ruby/io.h" /* for rb_io_t */

/** Ruby's IO, metadata and buffers. */
typedef struct rb_io {
struct rb_io {

/** The IO's Ruby level counterpart. */
VALUE self;
Expand Down Expand Up @@ -108,7 +108,7 @@ typedef struct rb_io {
* The timeout associated with this IO when performing blocking operations.
*/
VALUE timeout;
} rb_io_t;
};

/* io.c */
void ruby_set_inplace_mode(const char *);
Expand Down

0 comments on commit 8fddaca

Please sign in to comment.