From a79655273be421852f02abf0527886d73ef4b301 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Thu, 27 Sep 2012 06:35:42 +0200 Subject: disable SDL's stdio redirection on Windows --- main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/main.cpp b/main.cpp index 19ed0f9..d31f14f 100644 --- a/main.cpp +++ b/main.cpp @@ -179,6 +179,12 @@ main(int argc, char **argv) port, sdl_flags, show_cursor, width, height, bpp, framerate); +#ifdef __WIN32__ + /* disable SDL's stdio redirect */ + freopen("CON", "w", stdout); + freopen("CON", "w", stderr); +#endif + if (SDL_Init(SDL_INIT_VIDEO)) { SDL_ERROR("SDL_Init"); return EXIT_FAILURE; -- cgit v1.2.3