From 9a1351808c7443a65f876d2b7808ebdea7d9c814 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Sat, 21 May 2016 17:16:13 +0300 Subject: Port to MinGW --- tests/manifest-roundtrip/driver.cxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'tests/manifest-roundtrip/driver.cxx') diff --git a/tests/manifest-roundtrip/driver.cxx b/tests/manifest-roundtrip/driver.cxx index 917dc50..4f9a965 100644 --- a/tests/manifest-roundtrip/driver.cxx +++ b/tests/manifest-roundtrip/driver.cxx @@ -2,13 +2,17 @@ // copyright : Copyright (c) 2014-2016 Code Synthesis Ltd // license : MIT; see accompanying LICENSE file +#include #include #include +#include // stdout_mode() + #include #include using namespace std; +using namespace butl; using namespace bpkg; int @@ -24,9 +28,11 @@ main (int argc, char* argv[]) { ifstream ifs; ifs.exceptions (ifstream::badbit | ifstream::failbit); - ifs.open (argv[1], ifstream::in | ifstream::binary); + ifs.open (argv[1]); manifest_parser p (ifs, argv[1]); + + stdout_fdmode (fdtranslate::binary); // Write in binary mode. manifest_serializer s (cout, "stdout"); for (bool eom (true), eos (false); !eos; ) -- cgit v1.1