summaryrefslogtreecommitdiff
path: root/lib/Input.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Input.cc')
-rw-r--r--lib/Input.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Input.cc b/lib/Input.cc
index bfb771c..ed549ec 100644
--- a/lib/Input.cc
+++ b/lib/Input.cc
@@ -164,7 +164,11 @@ int Input::wrapopen(const String & fname, openresults_t * results) {
}
}
results->name = "";
- return open(fname.to_charp(), O_RDONLY);
+ return open(fname.to_charp(), O_RDONLY
+#ifdef _WIN32
+ | O_BINARY
+#endif
+ );
}
void Input::SetZ(int l) throw(GeneralException) {