aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Melnichuk <mimir@newmail.ru>2014-11-26 13:00:44 +0400
committerAlexey Melnichuk <mimir@newmail.ru>2014-11-26 13:00:44 +0400
commitfebc8d1e0bcbe023cc8a38c87dda4e8a84ec9fdd (patch)
tree64573d325b7b5a0e3af1b4d6ca7e9cbec75fd595
parentdbf215ef683e545de593f5b434764b97dea3e2ac (diff)
downloadlua-llthreads2-febc8d1e0bcbe023cc8a38c87dda4e8a84ec9fdd.tar.gz
lua-llthreads2-febc8d1e0bcbe023cc8a38c87dda4e8a84ec9fdd.tar.bz2
lua-llthreads2-febc8d1e0bcbe023cc8a38c87dda4e8a84ec9fdd.zip
Fix. Build with Lua 5.3.beta
-rw-r--r--rockspecs/lua-llthreads2-compat-scm-0.rockspec2
-rw-r--r--rockspecs/lua-llthreads2-scm-0.rockspec2
-rw-r--r--src/l52util.h12
3 files changed, 14 insertions, 2 deletions
diff --git a/rockspecs/lua-llthreads2-compat-scm-0.rockspec b/rockspecs/lua-llthreads2-compat-scm-0.rockspec
index bbb3ecd..c8b909b 100644
--- a/rockspecs/lua-llthreads2-compat-scm-0.rockspec
+++ b/rockspecs/lua-llthreads2-compat-scm-0.rockspec
@@ -15,7 +15,7 @@ description = {
15 ]], 15 ]],
16} 16}
17dependencies = { 17dependencies = {
18 "lua >= 5.1, < 5.3", 18 "lua >= 5.1, < 5.4",
19} 19}
20build = { 20build = {
21 type = "builtin", 21 type = "builtin",
diff --git a/rockspecs/lua-llthreads2-scm-0.rockspec b/rockspecs/lua-llthreads2-scm-0.rockspec
index 0795eca..cd3a4a4 100644
--- a/rockspecs/lua-llthreads2-scm-0.rockspec
+++ b/rockspecs/lua-llthreads2-scm-0.rockspec
@@ -15,7 +15,7 @@ description = {
15 ]], 15 ]],
16} 16}
17dependencies = { 17dependencies = {
18 "lua >= 5.1, < 5.3", 18 "lua >= 5.1, < 5.4",
19} 19}
20build = { 20build = {
21 type = "builtin", 21 type = "builtin",
diff --git a/src/l52util.h b/src/l52util.h
index 38a87db..92d9fb8 100644
--- a/src/l52util.h
+++ b/src/l52util.h
@@ -4,6 +4,18 @@
4#include "lua.h" 4#include "lua.h"
5#include "lauxlib.h" 5#include "lauxlib.h"
6 6
7#if LUA_VERSION_NUM >= 503 /* Lua 5.3 */
8
9#ifndef luaL_optint
10# define luaL_optint luaL_optinteger
11#endif
12
13#ifndef luaL_checkint
14# define luaL_checkint luaL_checkinteger
15#endif
16
17#endif
18
7#if LUA_VERSION_NUM >= 502 // lua 5.2 19#if LUA_VERSION_NUM >= 502 // lua 5.2
8 20
9// lua_rawgetp 21// lua_rawgetp