Skip to content

Commit 698285d

Browse files
authored
fix build with mingw g++ 10 (#183)
Fixes #182
1 parent 0e21bbd commit 698285d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/toml++/impl/parser.inl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3763,7 +3763,7 @@ TOML_ANON_NAMESPACE_START
37633763
TOML_OVERALIGNED char file_buffer[sizeof(void*) * 1024u];
37643764
file.rdbuf()->pubsetbuf(file_buffer, sizeof(file_buffer));
37653765
#if TOML_WINDOWS
3766-
file.open(impl::widen(file_path_str), std::ifstream::in | std::ifstream::binary | std::ifstream::ate);
3766+
file.open(impl::widen(file_path_str).c_str(), std::ifstream::in | std::ifstream::binary | std::ifstream::ate);
37673767
#else
37683768
file.open(file_path_str, std::ifstream::in | std::ifstream::binary | std::ifstream::ate);
37693769
#endif

toml.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15772,7 +15772,7 @@ TOML_ANON_NAMESPACE_START
1577215772
TOML_OVERALIGNED char file_buffer[sizeof(void*) * 1024u];
1577315773
file.rdbuf()->pubsetbuf(file_buffer, sizeof(file_buffer));
1577415774
#if TOML_WINDOWS
15775-
file.open(impl::widen(file_path_str), std::ifstream::in | std::ifstream::binary | std::ifstream::ate);
15775+
file.open(impl::widen(file_path_str).c_str(), std::ifstream::in | std::ifstream::binary | std::ifstream::ate);
1577615776
#else
1577715777
file.open(file_path_str, std::ifstream::in | std::ifstream::binary | std::ifstream::ate);
1577815778
#endif

0 commit comments

Comments
 (0)