mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
make extern more of a no-op when the def alread exists
This commit is contained in:
parent
065ec7ff39
commit
b81f77803c
1 changed files with 1 additions and 1 deletions
|
@ -199,7 +199,7 @@ get_def (type_t *type, const char *name, scope_t *scope,
|
|||
return def;
|
||||
|
||||
if (def) {
|
||||
if (!def->external)
|
||||
if (!def->external || storage == st_extern)
|
||||
return def;
|
||||
} else {
|
||||
// allocate a new def
|
||||
|
|
Loading…
Reference in a new issue