]> git.sesse.net Git - vlc/commitdiff
Freetype: do not ship dead code on WinRT dll
authorJean-Baptiste Kempf <jb@videolan.org>
Thu, 6 Mar 2014 18:20:52 +0000 (19:20 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 6 Mar 2014 18:20:52 +0000 (19:20 +0100)
This allows freetype.dll to pass WACK

modules/text_renderer/platform_fonts.c
modules/text_renderer/platform_fonts.h

index c1d2e4ec612f2c54bbf0a9ef2f92ff4d62c01628..7869dbaed4f507cd99a8a605f8cb2f9debdd7f35 100644 (file)
@@ -178,7 +178,7 @@ char* FontConfig_Select( filter_t *p_filter, const char* family,
 }
 #endif
 
-#ifdef _WIN32
+#if defined( _WIN32 ) && !VLC_WINSTORE_APP
 #define FONT_DIR_NT _T("SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Fonts")
 
 static int GetFileFontByName( LPCTSTR font_name, char **psz_filename )
index 1cb916278ed461851aad1fba8fc0c3500ae187cd..cff52b1fec5a60ccf31ca904d67c9ee9b9aa3980 100644 (file)
@@ -85,7 +85,7 @@ void FontConfig_BuildCache( filter_t *p_filter );
 #endif
 
 
-#ifdef _WIN32
+#if defined( _WIN32 ) && !VLC_WINSTORE_APP
 char* Win32_Select( filter_t *p_filter, const char* family,
                            bool b_bold, bool b_italic, int i_size, int *i_idx );