diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2016-05-21 17:16:13 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2016-05-31 19:04:33 +0300 |
commit | 9a1351808c7443a65f876d2b7808ebdea7d9c814 (patch) | |
tree | 80fedb517a43c64762bb71fa690c90a40824be33 /tests/manifest/driver.cxx | |
parent | 057a5d5d435d53166d1b8751748a9ba0a317bee3 (diff) |
Port to MinGW
Diffstat (limited to 'tests/manifest/driver.cxx')
-rw-r--r-- | tests/manifest/driver.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/manifest/driver.cxx b/tests/manifest/driver.cxx index c153477..74e2166 100644 --- a/tests/manifest/driver.cxx +++ b/tests/manifest/driver.cxx @@ -2,14 +2,18 @@ // copyright : Copyright (c) 2014-2016 Code Synthesis Ltd // license : MIT; see accompanying LICENSE file +#include <cassert> #include <fstream> #include <iostream> +#include <butl/fdstream> // stdout_mode() + #include <bpkg/manifest> #include <bpkg/manifest-parser> #include <bpkg/manifest-serializer> using namespace std; +using namespace butl; using namespace bpkg; int @@ -37,6 +41,8 @@ main (int argc, char* argv[]) signature_manifest ms (p); #endif + + stdout_fdmode (fdtranslate::binary); // Write in binary mode. manifest_serializer s (cout, "stdout"); ms.serialize (s); } |