History

Fix for Microsoft compilers

Miccrosoft Visual Sudio (Express) 2008 and 2010 do not accept variable definitions C99 style, reported by Fabio <oldfaber@gmail.com>

seyko committed 11 years ago

Commit db081221 parent d80593b2 files · +2 −2Browse files

Unified · Split

2 files
  1. lib/bcheck.c +1 −1
  2. libtcc.c +1 −1
lib/bcheck.c+1−1
@@ -81,7 +81,7 @@ void __bound_new_region(void *p, size_t size); · 80 unmodified lines
8181 int __bound_delete_region(void *p);
8282
8383 #ifdef __attribute__
84− /* __attribute__ is redifened in system headers */
84+ /* an __attribute__ macro is defined in the system headers */
8585 #undef __attribute__
8686 #endif
8787 #define FASTCALL __attribute__((regparm(3)))
libtcc.c+1−1
@@ -462,8 +462,8 @@ ST_FUNC void put_extern_sym2(Sym *sym, Section *section, · 461 unmodified lines
462462 if (!sym->c) {
463463 name = get_tok_str(sym->v, NULL);
464464 #ifdef CONFIG_TCC_BCHECK
465− char buf[32];
466465 if (tcc_state->do_bounds_check) {
466+ char buf[32];
467467 /* XXX: avoid doing that for statics ? */
468468 /* if bound checking is activated, we change some function
469469 names by adding the "__bound" prefix */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t