Miccrosoft Visual Sudio (Express) 2008 and 2010 do not accept variable definitions C99 style, reported by Fabio <oldfaber@gmail.com>
Unified · Split
| @@ -81,7 +81,7 @@ void __bound_new_region(void *p, size_t size); · 80 unmodified lines | |||
| 81 | int __bound_delete_region(void *p); | 81 | int __bound_delete_region(void *p); |
| 82 | 82 | ||
| 83 | #ifdef __attribute__ | 83 | #ifdef __attribute__ |
| 84 | /* __attribute__ is redifened in system headers */ | 84 | /* an __attribute__ macro is defined in the system headers */ |
| 85 | #undef __attribute__ | 85 | #undef __attribute__ |
| 86 | #endif | 86 | #endif |
| 87 | #define FASTCALL __attribute__((regparm(3))) | 87 | #define FASTCALL __attribute__((regparm(3))) |
| @@ -462,8 +462,8 @@ ST_FUNC void put_extern_sym2(Sym *sym, Section *section, · 461 unmodified lines | |||
| 462 | if (!sym->c) { | 462 | if (!sym->c) { |
| 463 | name = get_tok_str(sym->v, NULL); | 463 | name = get_tok_str(sym->v, NULL); |
| 464 | #ifdef CONFIG_TCC_BCHECK | 464 | #ifdef CONFIG_TCC_BCHECK |
| 465 | char buf[32]; | ||
| 466 | if (tcc_state->do_bounds_check) { | 465 | if (tcc_state->do_bounds_check) { |
| 466 | char buf[32]; | ||
| 467 | /* XXX: avoid doing that for statics ? */ | 467 | /* XXX: avoid doing that for statics ? */ |
| 468 | /* if bound checking is activated, we change some function | 468 | /* if bound checking is activated, we change some function |
| 469 | names by adding the "__bound" prefix */ | 469 | names by adding the "__bound" prefix */ |