From 61e0cb5dddb89ddab1d68791eb28d892c114622f Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Sun, 3 Mar 2013 09:58:49 +0100 Subject: Open files in binary mode on windows So that the Windows' C library doesn't munge line endings --- common/compat.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'common') 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 -- cgit v1.1