Support older libstdc++

This commit is contained in:
Guillaume Meunier
2025-08-03 10:50:22 +02:00
parent ce21f578a1
commit d830d3bdd0
+3 -1
View File
@@ -269,7 +269,9 @@ std::vector<std::byte> load_ico(const std::filesystem::path & filename, int size
if (magic == ICO_PNG_MAGIC)
{
// PNG file
return {std::from_range, best_entry.data};
std::vector<std::byte> png_data;
png_data.insert(png_data.end(), data.begin(), data.end());
return png_data;
}
else if (magic == 40)
{