diff options
author | 卜部昌平 <[email protected]> | 2023-08-25 14:42:11 +0900 |
---|---|---|
committer | 卜部昌平 <[email protected]> | 2023-08-25 17:27:53 +0900 |
commit | 1614e5ebb2354603d5dca2a443a0bd669d21eda7 (patch) | |
tree | 0f5f870fb1b191c7b5db5fe8d1097bee7ffe7a01 /universal_parser.c | |
parent | 81620ed9b5553a80ea2c7d95b58c3217b1679459 (diff) |
C structs cannot have two definitions
Not allowed even the definitions are identical.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/8274
Diffstat (limited to 'universal_parser.c')
-rw-r--r-- | universal_parser.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 |