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:
Steve Lhomme 2023-02-15 02:16:13 -08:00 committed by Jean-Baptiste Kempf
parent 6b3b562369
commit 984ccfa60e
1 changed files with 2 additions and 2 deletions

View File

@ -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);