Don't use C99 decls
we're consciously trying to write C90 compatible code, hence no mixed declaration and code.
This commit is contained in:
parent
adfcf3b1dd
commit
f68a1f50fd
1 changed files with 1 additions and 1 deletions
2
tccelf.c
2
tccelf.c
|
@ -870,10 +870,10 @@ static int prepare_dynamic_rel(TCCState *s1, Section *sr)
|
||||||
|
|
||||||
count = 0;
|
count = 0;
|
||||||
for_each_elem(sr, 0, rel, ElfW_Rel) {
|
for_each_elem(sr, 0, rel, ElfW_Rel) {
|
||||||
type = ELFW(R_TYPE)(rel->r_info);
|
|
||||||
#if defined(TCC_TARGET_I386) || defined(TCC_TARGET_X86_64)
|
#if defined(TCC_TARGET_I386) || defined(TCC_TARGET_X86_64)
|
||||||
int sym_index = ELFW(R_SYM)(rel->r_info);
|
int sym_index = ELFW(R_SYM)(rel->r_info);
|
||||||
#endif
|
#endif
|
||||||
|
type = ELFW(R_TYPE)(rel->r_info);
|
||||||
switch(type) {
|
switch(type) {
|
||||||
#if defined(TCC_TARGET_I386) || defined(TCC_TARGET_X86_64)
|
#if defined(TCC_TARGET_I386) || defined(TCC_TARGET_X86_64)
|
||||||
#if defined(TCC_TARGET_I386)
|
#if defined(TCC_TARGET_I386)
|
||||||
|
|
Loading…
Add table
Reference in a new issue