From 62a6a76bf4c937a43de90dd4f04523e76271b338 Mon Sep 17 00:00:00 2001 From: Craig Carnell <1188869+cscd98@users.noreply.github.com> Date: Mon, 8 Dec 2025 19:23:12 +0000 Subject: [PATCH] mingw: allow WStringToUTF8 usage --- Source/Core/Common/StringUtil.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Common/StringUtil.cpp b/Source/Core/Common/StringUtil.cpp index 79dc2a4269..5d28801aba 100644 --- a/Source/Core/Common/StringUtil.cpp +++ b/Source/Core/Common/StringUtil.cpp @@ -591,7 +591,7 @@ std::filesystem::path StringToPath(std::string_view path) // path::u8string returns std::u8string starting with C++20, which is annoying to convert. std::string PathToString(const std::filesystem::path& path) { -#ifdef _MSC_VER +#ifdef _WIN32 return WStringToUTF8(path.native()); #else return path.native();