diff options
author | Alexey Melnichuk <mimir@newmail.ru> | 2014-02-10 13:40:52 +0400 |
---|---|---|
committer | Alexey Melnichuk <mimir@newmail.ru> | 2014-02-10 13:40:52 +0400 |
commit | 0ef254d0d5ea2619a295fe1c3832c886f70e5140 (patch) | |
tree | ea8fd89b39a3d2e056f7ff6791c7bfdc2c1bd5b3 /src/l52util.c | |
parent | 2238060cdc223374f76f465eb184e7d248876634 (diff) | |
download | lua-llthreads2-0ef254d0d5ea2619a295fe1c3832c886f70e5140.tar.gz lua-llthreads2-0ef254d0d5ea2619a295fe1c3832c886f70e5140.tar.bz2 lua-llthreads2-0ef254d0d5ea2619a295fe1c3832c886f70e5140.zip |
Fix. build for Lua 5.2 with LUA_COMPAT_XXX
Diffstat (limited to 'src/l52util.c')
-rw-r--r-- | src/l52util.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/l52util.c b/src/l52util.c index 0b40c3e..9d44a40 100644 --- a/src/l52util.c +++ b/src/l52util.c | |||
@@ -11,11 +11,15 @@ int luaL_typerror (lua_State *L, int narg, const char *tname) { | |||
11 | return luaL_argerror(L, narg, msg); | 11 | return luaL_argerror(L, narg, msg); |
12 | } | 12 | } |
13 | 13 | ||
14 | #ifndef luaL_register | ||
15 | |||
14 | void luaL_register (lua_State *L, const char *libname, const luaL_Reg *l){ | 16 | void luaL_register (lua_State *L, const char *libname, const luaL_Reg *l){ |
15 | if(libname) lua_newtable(L); | 17 | if(libname) lua_newtable(L); |
16 | luaL_setfuncs(L, l, 0); | 18 | luaL_setfuncs(L, l, 0); |
17 | } | 19 | } |
18 | 20 | ||
21 | #endif | ||
22 | |||
19 | #else | 23 | #else |
20 | 24 | ||
21 | void luaL_setfuncs (lua_State *L, const luaL_Reg *l, int nup){ | 25 | void luaL_setfuncs (lua_State *L, const luaL_Reg *l, int nup){ |