C structs cannot have two definitions

Not allowed even the definitions are identical.
This commit is contained in:
卜部昌平 2023-08-25 14:42:11 +09:00
parent 81620ed9b5
commit 1614e5ebb2
Notes: git 2023-08-25 08:28:16 +00:00

View File

@ -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