summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorStef Walter <stefw@gnome.org>2013-03-03 09:58:49 +0100
committerStef Walter <stefw@gnome.org>2013-03-03 10:07:14 +0100
commit61e0cb5dddb89ddab1d68791eb28d892c114622f (patch)
tree56d6c5d62ad4a9cd4f25693d9412283c5cb2b229 /common
parentd9076a99c59bb0132b25277a2340f428c9b6c98e (diff)
Open files in binary mode on windows
So that the Windows' C library doesn't munge line endings
Diffstat (limited to 'common')
-rw-r--r--common/compat.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/compat.h b/common/compat.h
index 7eb42a5..d4858f0 100644
--- a/common/compat.h
+++ b/common/compat.h
@@ -64,6 +64,10 @@
#endif
#endif
+#ifndef O_BINARY
+#define O_BINARY 0
+#endif
+
#ifndef HAVE_GETPROGNAME
const char * getprogname (void);
#endif