mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-29 17:54:50 +01:00
Fix compilation on Linux, macOS. (#7732)
This commit is contained in:
@@ -309,7 +309,7 @@ namespace Imaging
|
||||
return ReadFromFile(path, GetImageFormatFromPath(path));
|
||||
default:
|
||||
{
|
||||
#if _WIN32
|
||||
#if defined(_WIN32) && !defined(__MINGW32__)
|
||||
auto pathW = String::ToUtf16(path);
|
||||
std::ifstream fs(pathW, std::ios::binary);
|
||||
#else
|
||||
@@ -335,7 +335,7 @@ namespace Imaging
|
||||
break;
|
||||
case IMAGE_FORMAT::PNG:
|
||||
{
|
||||
#ifdef _WIN32
|
||||
#if defined(_WIN32) && !defined(__MINGW32__)
|
||||
auto pathW = String::ToUtf16(path);
|
||||
std::ofstream fs(pathW, std::ios::binary);
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user