We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
x
fsbridge::fopen
1 parent 11b436a commit d2fe905Copy full SHA for d2fe905
src/test/streams_tests.cpp
@@ -29,7 +29,14 @@ BOOST_AUTO_TEST_CASE(xor_file)
29
BOOST_CHECK_EXCEPTION(xor_file.ignore(1), std::ios_base::failure, HasReason{"AutoFile::ignore: file handle is nullpt"});
30
}
31
{
32
- AutoFile xor_file{raw_file("wbx"), xor_pat};
+#ifdef __MINGW64__
33
+ // Our usage of mingw-w64 and the msvcrt runtime does not support
34
+ // the x modifier for the _wfopen().
35
+ const char* mode = "wb";
36
+#else
37
+ const char* mode = "wbx";
38
+#endif
39
+ AutoFile xor_file{raw_file(mode), xor_pat};
40
xor_file << test1 << test2;
41
42
0 commit comments