From 097b766b41d4d2faac8e8649a2ac40abef920272 Mon Sep 17 00:00:00 2001 From: 卜部昌平 Date: Fri, 25 Aug 2023 13:51:07 +0900 Subject: do not redefine a typedef duplicated typedef declaration was not allowed in C99. --- internal/io.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal') 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 *); -- cgit v1.2.3