Last active
February 11, 2018 12:32
-
-
Save ErnyTech/0b18995e092d93e429db085041fc2ddc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- modules/lua/demux.c 2017-12-21 10:51:16.000000000 +0100 | |
+++ modules/lua/demux.c 2018-02-11 12:46:13.778609000 +0100 | |
@@ -38,6 +38,15 @@ | |
#include "vlc.h" | |
#include "libs.h" | |
+/* | |
+Backport for LUA 5.0.3 | |
+*/ | |
+ | |
+#if LUA_VERSION_NUM >= 503 | |
+#define luaL_checkint(L,n) ((int)luaL_checkinteger(L, (n))) | |
+#endif | |
+ | |
+ | |
/***************************************************************************** | |
* Demux specific functions | |
*****************************************************************************/ | |
--- modules/lua/libs/dialog.c 2017-11-24 16:29:18.000000000 +0100 | |
+++ modules/lua/libs/dialog.c 2018-02-11 13:12:59.881622086 +0100 | |
@@ -41,6 +41,14 @@ | |
#include "assert.h" | |
+/* | |
+Backport for LUA 5.0.3 | |
+*/ | |
+ | |
+#if LUA_VERSION_NUM >= 503 | |
+#define luaL_checkint(L,n) ((int)luaL_checkinteger(L, (n))) | |
+#endif | |
+ | |
/***************************************************************************** | |
* | |
*****************************************************************************/ | |
--- modules/lua/libs/net.c 2017-11-24 16:29:18.000000000 +0100 | |
+++ modules/lua/libs/net.c 2018-02-11 13:13:12.902785576 +0100 | |
@@ -48,6 +48,14 @@ | |
#include "../libs.h" | |
#include "misc.h" | |
+/* | |
+Backport for LUA 5.0.3 | |
+*/ | |
+ | |
+#if LUA_VERSION_NUM >= 503 | |
+#define luaL_checkint(L,n) ((int)luaL_checkinteger(L, (n))) | |
+#endif | |
+ | |
static vlclua_dtable_t *vlclua_get_dtable( lua_State *L ) | |
{ | |
return vlclua_get_object( L, vlclua_get_dtable ); | |
--- modules/lua/libs/osd.c 2017-11-24 16:29:18.000000000 +0100 | |
+++ modules/lua/libs/osd.c 2018-02-11 13:12:46.219449253 +0100 | |
@@ -39,6 +39,14 @@ | |
#include "../libs.h" | |
#include "input.h" | |
+/* | |
+Backport for LUA 5.0.3 | |
+*/ | |
+ | |
+#if LUA_VERSION_NUM >= 503 | |
+#define luaL_checkint(L,n) ((int)luaL_checkinteger(L, (n))) | |
+#endif | |
+ | |
/***************************************************************************** | |
* OSD | |
*****************************************************************************/ | |
--- modules/lua/libs/volume.c 2017-11-24 16:29:18.000000000 +0100 | |
+++ modules/lua/libs/volume.c 2018-02-11 13:14:21.639629828 +0100 | |
@@ -42,6 +42,14 @@ | |
#include "../vlc.h" | |
#include "../libs.h" | |
+/* | |
+Backport for LUA 5.0.3 | |
+*/ | |
+ | |
+#if LUA_VERSION_NUM >= 503 | |
+#define luaL_checkint(L,n) ((int)luaL_checkinteger(L, (n))) | |
+#endif | |
+ | |
/***************************************************************************** | |
* Volume related | |
*****************************************************************************/ | |
--- modules/lua/libs/stream.c 2017-11-24 16:29:18.000000000 +0100 | |
+++ modules/lua/libs/stream.c 2018-02-11 13:14:31.525748806 +0100 | |
@@ -41,6 +41,14 @@ | |
#include "../vlc.h" | |
#include "../libs.h" | |
+/* | |
+Backport for LUA 5.0.3 | |
+*/ | |
+ | |
+#if LUA_VERSION_NUM >= 503 | |
+#define luaL_checkint(L,n) ((int)luaL_checkinteger(L, (n))) | |
+#endif | |
+ | |
/***************************************************************************** | |
* Stream handling | |
*****************************************************************************/ | |
--- modules/lua/libs/playlist.c 2017-11-24 16:29:18.000000000 +0100 | |
+++ modules/lua/libs/playlist.c 2018-02-11 13:30:51.776864053 +0100 | |
@@ -43,6 +43,14 @@ | |
#include "variables.h" | |
#include "misc.h" | |
+/* | |
+Backport for LUA 5.0.3 | |
+*/ | |
+ | |
+#if LUA_VERSION_NUM >= 503 | |
+#define luaL_checkint(L,n) ((int)luaL_checkinteger(L, (n))) | |
+#endif | |
+ | |
void vlclua_set_playlist_internal( lua_State *L, playlist_t *pl ) | |
{ | |
vlclua_set_object( L, vlclua_set_playlist_internal, pl ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment