From 6f3139a78d2926911bca016cc89f53419556b781 Mon Sep 17 00:00:00 2001 From: halleyscometsw Date: Tue, 1 Jul 2008 19:20:09 +0000 Subject: [PATCH] make test's standard output binary under windows git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@271 51a99a44-fe44-0410-b1ba-c3e57ba2b86b --- test/test.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/test.c b/test/test.c index 5f44b17d..9a50b132 100644 --- a/test/test.c +++ b/test/test.c @@ -2,6 +2,10 @@ #include #include "../src/vgmstream.h" #include "../src/util.h" +#ifdef WIN32 +#include +#include +#endif #define BUFSIZE 4000 @@ -116,6 +120,13 @@ int main(int argc, char ** argv) { return 1; } +#ifdef WIN32 + /* make stdout output work with windows */ + if (play) { + _setmode(fileno(stdout),_O_BINARY); + } +#endif + if (ignore_loop && force_loop) { fprintf(stderr,"-e and -i are incompatible\n"); return 1;