From ac7ecbe30cdec598955471d2ed012f36296b78de Mon Sep 17 00:00:00 2001 From: James Ross-Gowan Date: Sun, 29 Mar 2015 22:36:46 +1100 Subject: win32: use a platform-specific unicode entry-point Add a platform-specific entry-point for Windows. This will allow some platform-specific initialization to be added without the need for ugly ifdeffery in main.c. As an immediate advantage, mpv can now use a unicode entry-point and convert the command line arguments to UTF-8 before passing them to mpv_main, so osdep_preinit can be simplified a little bit. --- waftools/detections/compiler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'waftools') diff --git a/waftools/detections/compiler.py b/waftools/detections/compiler.py index fa7986683f..7cae75e4dc 100644 --- a/waftools/detections/compiler.py +++ b/waftools/detections/compiler.py @@ -53,8 +53,8 @@ def __add_mswin_flags__(ctx): def __add_mingw_flags__(ctx): __add_mswin_flags__(ctx) - ctx.env.CFLAGS += ['-D__USE_MINGW_ANSI_STDIO=1'] - ctx.env.LAST_LINKFLAGS += ['-mwindows'] + ctx.env.CFLAGS += ['-municode', '-D__USE_MINGW_ANSI_STDIO=1'] + ctx.env.LAST_LINKFLAGS += ['-municode', '-mwindows'] def __add_cygwin_flags__(ctx): __add_mswin_flags__(ctx) -- cgit v1.2.3