gnuplot/gnuplot-5.0.0-lua_checkint.patch
Frantisek Kluknavsky d16e5fa116 make qt terminal default instead of outdated wx
- luaL_checkint macro disappeared from lua headers
2015-01-26 20:17:33 +01:00

14 lines
439 B
Diff

diff -up wrk/term/lua.trm.wrk wrk/term/lua.trm
--- wrk/term/lua.trm.wrk 2015-01-26 18:36:53.242174908 +0100
+++ wrk/term/lua.trm 2015-01-26 18:38:44.674258427 +0100
@@ -114,6 +114,9 @@ TERM_PUBLIC void LUA_boxed_text __PROTO(
#include <lualib.h>
#include <lauxlib.h>
+//luaL_checkint macro disappeared
+#define luaL_checkint(L,n) ((int)luaL_checkinteger(L, (n)))
+
static lua_State *L = NULL;
static char *LUA_script = NULL;