]> git.sesse.net Git - vlc/commitdiff
lua: Make sure it builds with --disable-nls.
authorPierre d'Herbemont <pdherbemont@free.fr>
Mon, 28 Dec 2009 01:49:12 +0000 (02:49 +0100)
committerPierre d'Herbemont <pdherbemont@free.fr>
Mon, 28 Dec 2009 01:49:12 +0000 (02:49 +0100)
modules/misc/lua/intf.c
modules/misc/lua/libs.h

index 5d73547c774a6db2c65ffd888971b9c29b82d37d..0092243477663f884c3ae8bc2408b0a2f07acc10 100644 (file)
@@ -211,7 +211,9 @@ int Open_LuaIntf( vlc_object_t *p_this )
     luaopen_video( L );
     luaopen_vlm( L );
     luaopen_volume( L );
+#ifdef ENABLE_NLS
     luaopen_gettext( L );
+#endif
 
     /* clean up */
     lua_pop( L, 1 );
index 7bd8701105467944a9b3b90915ddf69200e7b91b..c4c0ec346d4185960703e8bb387b063aed59e297 100644 (file)
@@ -42,6 +42,8 @@ void luaopen_variables( lua_State * );
 void luaopen_video( lua_State * );
 void luaopen_vlm( lua_State * );
 void luaopen_volume( lua_State * );
+#ifdef ENABLE_NLS
 void luaopen_gettext( lua_State * );
+#endif
 
 #endif