From b22a2b562bdb2f3ca4a6ae304f9231d48f441f9d Mon Sep 17 00:00:00 2001 From: Leo Tenenbaum Date: Mon, 6 Jan 2020 17:17:03 -0500 Subject: started importing --- decls_cgen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'decls_cgen.c') diff --git a/decls_cgen.c b/decls_cgen.c index 85c574c..b6e7e8b 100644 --- a/decls_cgen.c +++ b/decls_cgen.c @@ -152,7 +152,7 @@ static bool cgen_decls_decl(CGenerator *g, Declaration *d) { for (int i = 0, n_idents = (int)arr_len(d->idents); i < n_idents; ++i) { Identifier ident = d->idents[i]; Type *type = decl_type_at_index(d, i); - if (type->kind != TYPE_TYPE) { + if (!type_contains_compileonly_type(type)) { if (ident->export_name) cgen_write(g, "extern "); else -- cgit v1.2.3