From 8e94bb58ca91b26c0916210a179157b1280489be Mon Sep 17 00:00:00 2001 From: lemon Date: Mon, 8 Aug 2022 06:29:26 +0200 Subject: tweak --- bootstrap/cgen.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bootstrap/cgen.c') diff --git a/bootstrap/cgen.c b/bootstrap/cgen.c index 8e2fef9..db477fd 100644 --- a/bootstrap/cgen.c +++ b/bootstrap/cgen.c @@ -684,6 +684,8 @@ defctype(const struct type *ty, void *_) { pri("typedef %s %s %s;\n", kind, *cname, *cname); if (!ty->agg.fwd) { pri("%s %s {\n", kind, *cname); + if (!ty->agg.flds.n) + pri("char _;\n"); for (int i = 0; i < ty->agg.flds.n; ++i) { struct aggfield fld = ty->agg.flds.d[i]; defctype(ty->agg.flds.d[i].ty, NULL); -- cgit v1.2.3