From 286b5bebd2c2f9bfe66b84b9b258c63afaac89f1 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Thu, 31 Mar 2016 11:10:46 -0700 Subject: set the binary bit on files we need to open in binary mode --- src/support/file.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/support/file.h') diff --git a/src/support/file.h b/src/support/file.h index 47f7ececb..8d92b5ab4 100644 --- a/src/support/file.h +++ b/src/support/file.h @@ -29,15 +29,15 @@ namespace wasm { template -T read_file(const std::string &filename, bool debug); +T read_file(const std::string &filename, bool binary, bool debug); // Declare the valid explicit specializations. -extern template std::string read_file<>(const std::string &, bool); -extern template std::vector read_file<>(const std::string &, bool); +extern template std::string read_file<>(const std::string &, bool, bool); +extern template std::vector read_file<>(const std::string &, bool, bool); class Output { public: // An empty filename will open stdout instead. - Output(const std::string &filename, bool debug); + Output(const std::string &filename, bool binary, bool debug); ~Output() = default; template std::ostream &operator<<(const T &v) { -- cgit v1.2.3