From 79c55b43cbf67f86b5a910d35b36d09b82db1625 Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Tue, 9 Dec 2008 07:36:14 +0000 Subject: [PATCH] use C linkage for implicit functions [r24424] --- parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parser.c b/parser.c index 28e2599..52bb011 100644 --- a/parser.c +++ b/parser.c @@ -6766,7 +6766,7 @@ static entity_t *create_implicit_function(symbol_t *symbol, type_t *ntype = allocate_type_zero(TYPE_FUNCTION); ntype->function.return_type = type_int; ntype->function.unspecified_parameters = true; - ntype->function.linkage = current_linkage; + ntype->function.linkage = LINKAGE_C; type_t *type = typehash_insert(ntype); if (type != ntype) { -- 2.20.1