aboutsummaryrefslogtreecommitdiff
path: root/win32/mingw.c
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2010-04-14 06:48:45 +0200
committerNguyễn Thái Ngọc Duy <pclouds@gmail.com>2010-09-10 18:39:24 +1000
commit223ad6e57c071645109706ded844e5dc4ffc1672 (patch)
treea63aa1ee0b53cdf2b907003cd83bd165964c8b06 /win32/mingw.c
parent3a9514cceca86f1c33c82fb879396789defb8f51 (diff)
downloadbusybox-w32-223ad6e57c071645109706ded844e5dc4ffc1672.tar.gz
busybox-w32-223ad6e57c071645109706ded844e5dc4ffc1672.tar.bz2
busybox-w32-223ad6e57c071645109706ded844e5dc4ffc1672.zip
win32: set binary I/O mode by default
Text mode is default on Windows, which is just bad. This file also hosts many functions that were extracted from commit e56b799d6ad8afba4168fffa7218d44c041a72d2 in Git repository, under directory compat. Some functions are modified/added by me, but usually credits go to Git developers.
Diffstat (limited to 'win32/mingw.c')
-rw-r--r--win32/mingw.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/win32/mingw.c b/win32/mingw.c
new file mode 100644
index 000000000..a85d81a2c
--- /dev/null
+++ b/win32/mingw.c
@@ -0,0 +1,3 @@
1#include "libbb.h"
2
3unsigned int _CRT_fmode = _O_BINARY;