diff --git a/include/toml++/impl/parser.inl b/include/toml++/impl/parser.inl index 8f1124b..9768bfb 100644 --- a/include/toml++/impl/parser.inl +++ b/include/toml++/impl/parser.inl @@ -3784,7 +3784,7 @@ TOML_ANON_NAMESPACE_START std::ifstream file; TOML_OVERALIGNED char file_buffer[sizeof(void*) * 1024u]; file.rdbuf()->pubsetbuf(file_buffer, sizeof(file_buffer)); -#if TOML_WINDOWS +#if TOML_WINDOWS && !(defined(__MINGW32__) || defined(__MINGW64__)) file.open(impl::widen(file_path_str).c_str(), std::ifstream::in | std::ifstream::binary | std::ifstream::ate); #else file.open(file_path_str, std::ifstream::in | std::ifstream::binary | std::ifstream::ate); diff --git a/toml.hpp b/toml.hpp index 6de5332..478db2a 100644 --- a/toml.hpp +++ b/toml.hpp @@ -16342,7 +16342,7 @@ TOML_ANON_NAMESPACE_START std::ifstream file; TOML_OVERALIGNED char file_buffer[sizeof(void*) * 1024u]; file.rdbuf()->pubsetbuf(file_buffer, sizeof(file_buffer)); -#if TOML_WINDOWS +#if TOML_WINDOWS && !(defined(__MINGW32__) || defined(__MINGW64__)) file.open(impl::widen(file_path_str).c_str(), std::ifstream::in | std::ifstream::binary | std::ifstream::ate); #else file.open(file_path_str, std::ifstream::in | std::ifstream::binary | std::ifstream::ate);