make extern more of a no-op when the def alread exists

This commit is contained in:
Bill Currie 2002-07-03 06:42:54 +00:00
parent 065ec7ff39
commit b81f77803c

View file

@ -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