From db08122d31a681e593c6679140d2df0cc63c8784 Mon Sep 17 00:00:00 2001 From: seyko Date: Sun, 29 Mar 2015 11:52:16 +0300 Subject: Fix for Microsoft compilers Miccrosoft Visual Sudio (Express) 2008 and 2010 do not accept variable definitions C99 style, reported by Fabio --- libtcc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libtcc.c') diff --git a/libtcc.c b/libtcc.c index a856865..533c14d 100644 --- a/libtcc.c +++ b/libtcc.c @@ -462,8 +462,8 @@ ST_FUNC void put_extern_sym2(Sym *sym, Section *section, if (!sym->c) { name = get_tok_str(sym->v, NULL); #ifdef CONFIG_TCC_BCHECK - char buf[32]; if (tcc_state->do_bounds_check) { + char buf[32]; /* XXX: avoid doing that for statics ? */ /* if bound checking is activated, we change some function names by adding the "__bound" prefix */ -- cgit v1.3.1