]> git.sesse.net Git - vlc/commitdiff
Win32: Console is not supported in WinRT appstore mode
authorJean-Baptiste Kempf <jb@videolan.org>
Sun, 10 Mar 2013 23:51:56 +0000 (00:51 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Sun, 10 Mar 2013 23:51:56 +0000 (00:51 +0100)
src/text/unicode.c

index 9bf5716a29bbcff467ce29e106b9d6e8af451389..dd29bfaadefabfaa1f6b3c49a8f3ae0f1fbe74f7 100644 (file)
@@ -59,6 +59,7 @@ int utf8_vfprintf( FILE *stream, const char *fmt, va_list ap )
     if (unlikely(res == -1))
         return -1;
 
+#if !defined(WINAPI_FAMILY_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
@@ -79,6 +80,7 @@ int utf8_vfprintf( FILE *stream, const char *fmt, va_list ap )
                 goto out;
         }
     }
+#endif
 
     char *ansi = ToANSI (str);
     if (ansi != NULL)