mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-13 08:27:39 +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;
|
return def;
|
||||||
|
|
||||||
if (def) {
|
if (def) {
|
||||||
if (!def->external)
|
if (!def->external || storage == st_extern)
|
||||||
return def;
|
return def;
|
||||||
} else {
|
} else {
|
||||||
// allocate a new def
|
// allocate a new def
|
||||||
|
|
Loading…
Reference in a new issue