mingw: allow WStringToUTF8 usage

This commit is contained in:
Craig Carnell 2025-12-08 19:23:12 +00:00
parent d05caf094d
commit 62a6a76bf4

View File

@ -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();