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
81int __bound_delete_region(void *p);81int __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#endif86#endif
87#define FASTCALL __attribute__((regparm(3)))87#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
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_BCHECK464#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 function468 /* if bound checking is activated, we change some function
469 names by adding the "__bound" prefix */469 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