fix build with mingw g++ 10 (#183)
Fixes https://github.com/marzer/tomlplusplus/issues/182
This commit is contained in:
parent
0e21bbd6da
commit
698285d9b2
@ -3763,7 +3763,7 @@ TOML_ANON_NAMESPACE_START
|
||||
TOML_OVERALIGNED char file_buffer[sizeof(void*) * 1024u];
|
||||
file.rdbuf()->pubsetbuf(file_buffer, sizeof(file_buffer));
|
||||
#if TOML_WINDOWS
|
||||
file.open(impl::widen(file_path_str), std::ifstream::in | std::ifstream::binary | std::ifstream::ate);
|
||||
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);
|
||||
#endif
|
||||
|
2
toml.hpp
2
toml.hpp
@ -15772,7 +15772,7 @@ TOML_ANON_NAMESPACE_START
|
||||
TOML_OVERALIGNED char file_buffer[sizeof(void*) * 1024u];
|
||||
file.rdbuf()->pubsetbuf(file_buffer, sizeof(file_buffer));
|
||||
#if TOML_WINDOWS
|
||||
file.open(impl::widen(file_path_str), std::ifstream::in | std::ifstream::binary | std::ifstream::ate);
|
||||
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);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user