mirror of https://code.videolan.org/videolan/vlc
text/unicode: only use WriteConsoleW with WINAPI_PARTITION_APP
that's how it's defined in the Platform SDK and ming-w64
This commit is contained in:
parent
6b3b562369
commit
984ccfa60e
|
@ -59,7 +59,7 @@ int utf8_vfprintf( FILE *stream, const char *fmt, va_list ap )
|
|||
if (unlikely(res == -1))
|
||||
return -1;
|
||||
|
||||
#ifndef VLC_WINSTORE_APP
|
||||
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)
|
||||
/* Writing to the console is a lot of fun on Microsoft Windows.
|
||||
* If you use the standard I/O functions, you must use the OEM code page,
|
||||
* which is different from the usual ANSI code page. Or maybe not, if the
|
||||
|
@ -89,7 +89,7 @@ int utf8_vfprintf( FILE *stream, const char *fmt, va_list ap )
|
|||
}
|
||||
else
|
||||
res = -1;
|
||||
#ifndef VLC_WINSTORE_APP
|
||||
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)
|
||||
out:
|
||||
#endif
|
||||
free (str);
|
||||
|
|
Loading…
Reference in New Issue