Skip to content

Commit

Permalink
fix build with mingw g++ 10 (#183)
Browse files Browse the repository at this point in the history
Fixes #182
  • Loading branch information
claudeha authored Dec 20, 2022
1 parent 0e21bbd commit 698285d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/toml++/impl/parser.inl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion toml.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 698285d

Please sign in to comment.