1
0
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:
Aaron van Geffen
2018-06-26 11:16:03 +02:00
committed by GitHub
parent 0f2ccebfe7
commit f963f969c1

View File

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