mirror of
https://github.com/frida/tinycc
synced 2024-11-24 00:29:38 +03:00
Fix last commit
it wasn't complete.
This commit is contained in:
parent
c3f0937012
commit
cb73be5346
8
tccgen.c
8
tccgen.c
@ -957,8 +957,12 @@ static void patch_type(Sym *sym, CType *type)
|
||||
|
||||
/* Force external definition if unequal inline specifier
|
||||
or an explicit extern one. */
|
||||
if ((type->t & VT_INLINE) != (sym->type.t & VT_INLINE)
|
||||
|| (type->t | sym->type.t) & VT_EXTERN) {
|
||||
if ((sym->type.t | type->t) & VT_STATIC) {
|
||||
type->t |= sym->type.t & VT_INLINE;
|
||||
sym->type.t |= type->t & VT_INLINE;
|
||||
} else if (((type->t & VT_INLINE) != (sym->type.t & VT_INLINE)
|
||||
|| (type->t | sym->type.t) & VT_EXTERN)
|
||||
&& !static_proto) {
|
||||
type->t &= ~VT_INLINE;
|
||||
sym->type.t &= ~VT_INLINE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user