From e9f577eb9a81cea09209bbf4eb910f89caa63b02 Mon Sep 17 00:00:00 2001 From: Martin Herkt Date: Sat, 28 Dec 2013 04:45:52 +0100 Subject: Windows: use the GUI subsystem, attach to console This is necessary to start mpv without forcing a console window, but also breaks console usability. A workaround is to call mpv from a wrapper process that uses the console subsystem and helps redirecting the standard streams and WriteConsole output to where they belong. --- waftools/detections/compiler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'waftools') diff --git a/waftools/detections/compiler.py b/waftools/detections/compiler.py index ab658b8ce3..a3ad2835d2 100644 --- a/waftools/detections/compiler.py +++ b/waftools/detections/compiler.py @@ -36,7 +36,7 @@ def __add_mingw_flags__(ctx): ctx.env.CFLAGS += ['-DBYTE_ORDER=1234'] ctx.env.CFLAGS += ['-DLITLE_ENDIAN=1234'] ctx.env.CFLAGS += ['-DBIG_ENDIAN=4321'] - ctx.env.LAST_LINKFLAGS += ['-mconsole'] + ctx.env.LAST_LINKFLAGS += ['-mwindows'] def __add_cygwin_flags__(ctx): ctx.env.CFLAGS += ['-mwin32'] -- cgit v1.2.3