Commit 57985796 authored by Anton Mitrofanov's avatar Anton Mitrofanov Committed by Loren Merritt

binmode stdin on mingw, not just msvc

parent 71a919d4
......@@ -31,9 +31,12 @@
#include <inttypes.h>
#endif
#ifdef _MSC_VER
#ifdef _WIN32
#include <io.h> // _setmode()
#include <fcntl.h> // _O_BINARY
#endif
#ifdef _MSC_VER
#define inline __inline
#define strcasecmp stricmp
#define strncasecmp strnicmp
......
......@@ -90,7 +90,7 @@ int main( int argc, char **argv )
pthread_win32_thread_attach_np();
#endif
#ifdef _MSC_VER
#ifdef _WIN32
_setmode(_fileno(stdin), _O_BINARY);
_setmode(_fileno(stdout), _O_BINARY);
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment