mingw.c: Use the O_BINARY flag to open files
commit62d2d6829cc7adab30cb2b52bc90a0d70f6952c1
authorFrank Li <lznuaa@gmail.com>
Mon, 17 Aug 2009 06:52:01 +0000 (17 14:52 +0800)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Sun, 18 Oct 2009 15:48:42 +0000 (18 17:48 +0200)
tree4d699a44b4320ad9f675b4151dbb9880209c6562
parentc124c9679255ad759d3441c5fd946a249fd39be3
mingw.c: Use the O_BINARY flag to open files

On Windows, non-text files must be opened using the O_BINARY flag.
MinGW does this for us automatically, but Microsoft Visual C++
does not.  So let's be explicit.

Signed-off-by: Frank Li <lznuaa@gmail.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
compat/mingw.c