Skip to content

Commit d1eed09

Browse files
Fix build msys2 (#264)
1 parent ddd97fd commit d1eed09

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
@@ -3784,7 +3784,7 @@ TOML_ANON_NAMESPACE_START
37843784
std::ifstream file;
37853785
TOML_OVERALIGNED char file_buffer[sizeof(void*) * 1024u];
37863786
file.rdbuf()->pubsetbuf(file_buffer, sizeof(file_buffer));
3787-
#if TOML_WINDOWS
3787+
#if TOML_WINDOWS && !(defined(__MINGW32__) || defined(__MINGW64__))
37883788
file.open(impl::widen(file_path_str).c_str(), std::ifstream::in | std::ifstream::binary | std::ifstream::ate);
37893789
#else
37903790
file.open(file_path_str, std::ifstream::in | std::ifstream::binary | std::ifstream::ate);

toml.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16342,7 +16342,7 @@ TOML_ANON_NAMESPACE_START
1634216342
std::ifstream file;
1634316343
TOML_OVERALIGNED char file_buffer[sizeof(void*) * 1024u];
1634416344
file.rdbuf()->pubsetbuf(file_buffer, sizeof(file_buffer));
16345-
#if TOML_WINDOWS
16345+
#if TOML_WINDOWS && !(defined(__MINGW32__) || defined(__MINGW64__))
1634616346
file.open(impl::widen(file_path_str).c_str(), std::ifstream::in | std::ifstream::binary | std::ifstream::ate);
1634716347
#else
1634816348
file.open(file_path_str, std::ifstream::in | std::ifstream::binary | std::ifstream::ate);

0 commit comments

Comments
 (0)