aboutsummaryrefslogtreecommitdiffstats
path: root/internal
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2023-08-25 13:51:07 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2023-08-25 17:27:53 +0900
commit097b766b41d4d2faac8e8649a2ac40abef920272 (patch)
treee11b84f5792025477913a5bbe247c49875b4ecd1 /internal
parentc914382db201bd1c4414fe3581d9da1af474ec18 (diff)
downloadruby-097b766b41d4d2faac8e8649a2ac40abef920272.tar.gz
do not redefine a typedef
duplicated typedef declaration was not allowed in C99.
Diffstat (limited to 'internal')
-rw-r--r--internal/io.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/io.h b/internal/io.h
index 3b2495a0d2..f16d9efc9c 100644
--- a/internal/io.h
+++ b/internal/io.h
@@ -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;
@@ -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 *);