summaryrefslogtreecommitdiff
path: root/lib/Output.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Output.cc')
-rw-r--r--lib/Output.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Output.cc b/lib/Output.cc
index 811918c..82940f6 100644
--- a/lib/Output.cc
+++ b/lib/Output.cc
@@ -22,6 +22,9 @@
Output::Output(String no, int create, int trunc) throw (GeneralException) :
Handle(no.strlen() ? open(no.to_charp(), O_WRONLY | (O_CREAT * (create ? 1 : 0)) | (O_TRUNC * (trunc ? 1 : 0))
+#ifdef _WIN32
+| O_BINARY
+#endif
#if defined __linux__ || defined __CYGWIN32__
, 00666
#endif