diff --git a/conftest.c b/conftest.c index 2824cc89..c7bc7831 100644 --- a/conftest.c +++ b/conftest.c @@ -1,5 +1,9 @@ #include +#if defined(_WIN32) +#include +#endif + /* Define architecture */ #if defined(__i386__) || defined _M_IX86 # define TRIPLET_ARCH "i386" @@ -49,6 +53,9 @@ int _CRT_glob = 0; int main(int argc, char *argv[]) { +#if defined(_WIN32) + _setmode(_fileno(stdout), _O_BINARY); /* don't translate \n to \r\n */ +#endif switch(argc == 2 ? argv[1][0] : 0) { case 'b': {