Commit b412ee7b authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Lua: do not compile Console code when in WinStoreApp mode

parent 085a335d
...@@ -833,7 +833,7 @@ static lua_State* GetLuaState( extensions_manager_t *p_mgr, ...@@ -833,7 +833,7 @@ static lua_State* GetLuaState( extensions_manager_t *p_mgr,
luaopen_vlm( L ); luaopen_vlm( L );
luaopen_volume( L ); luaopen_volume( L );
luaopen_xml( L ); luaopen_xml( L );
#ifdef WIN32 #if defined(WIN32) && !defined(WINAPI_FAMILY_APP)
luaopen_win( L ); luaopen_win( L );
#endif #endif
......
...@@ -266,7 +266,7 @@ static int Start_LuaIntf( vlc_object_t *p_this, const char *name ) ...@@ -266,7 +266,7 @@ static int Start_LuaIntf( vlc_object_t *p_this, const char *name )
luaopen_gettext( L ); luaopen_gettext( L );
luaopen_xml( L ); luaopen_xml( L );
luaopen_equalizer( L ); luaopen_equalizer( L );
#ifdef WIN32 #if defined(WIN32) && !defined(WINAPI_FAMILY_APP)
luaopen_win( L ); luaopen_win( L );
#endif #endif
......
...@@ -33,6 +33,8 @@ ...@@ -33,6 +33,8 @@
#include "../vlc.h" #include "../vlc.h"
#include "../libs.h" #include "../libs.h"
#ifndef WINAPI_FAMILY_APP
/* Based on modules/control/rc.c and include/vlc_interface.h */ /* Based on modules/control/rc.c and include/vlc_interface.h */
static HANDLE GetConsole( lua_State *L ) static HANDLE GetConsole( lua_State *L )
{ {
...@@ -156,4 +158,4 @@ void luaopen_win( lua_State *L ) ...@@ -156,4 +158,4 @@ void luaopen_win( lua_State *L )
lua_setfield( L, -2, "win" ); lua_setfield( L, -2, "win" );
} }
#endif /* WINAPI_FAMILY_APP */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment