From 1614e5ebb2354603d5dca2a443a0bd669d21eda7 Mon Sep 17 00:00:00 2001 From: 卜部昌平 Date: Fri, 25 Aug 2023 14:42:11 +0900 Subject: C structs cannot have two definitions Not allowed even the definitions are identical. --- universal_parser.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'universal_parser.c') diff --git a/universal_parser.c b/universal_parser.c index 1e7fc41fa0..0f1395322e 100644 --- a/universal_parser.c +++ b/universal_parser.c @@ -77,6 +77,7 @@ #undef T_RATIONAL #define T_RATIONAL 0x0f +#ifndef INTERNAL_IMEMO_H struct rb_imemo_tmpbuf_struct { VALUE flags; VALUE reserved; @@ -84,6 +85,7 @@ struct rb_imemo_tmpbuf_struct { struct rb_imemo_tmpbuf_struct *next; /* next imemo */ size_t cnt; /* buffer size in VALUE */ }; +#endif #undef xmalloc #define xmalloc p->config->malloc -- cgit v1.2.3