From f963f969c10229a07b10a82a2b200f4ca98a1bb3 Mon Sep 17 00:00:00 2001 From: Aaron van Geffen Date: Tue, 26 Jun 2018 11:16:03 +0200 Subject: [PATCH] Fix compilation on Linux, macOS. (#7732) --- src/openrct2/core/Imaging.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openrct2/core/Imaging.cpp b/src/openrct2/core/Imaging.cpp index 68152ef199..06504da9ab 100644 --- a/src/openrct2/core/Imaging.cpp +++ b/src/openrct2/core/Imaging.cpp @@ -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