mark unknown strings as extern

This commit is contained in:
Jeffrey Crowell 2022-07-04 22:49:12 -04:00
parent 211bf79b9a
commit ffabc6b7a3

View File

@ -351,6 +351,8 @@ std::string ZResource::GetSourceOutputHeader([[maybe_unused]] const std::string&
if (myset.find(name) == myset.end()) {
str += StringHelper::Sprintf("\nstatic const char %s[] __attribute__((aligned (2))) = d%s;", name.c_str(), name.c_str());
myset.insert(name);
} else {
str += StringHelper::Sprintf("\nextern static const char %s[] __attribute__((aligned (2)));", name.c_str());
}
return str;