diff options
Diffstat (limited to 'lmdb.c')
-rw-r--r-- | lmdb.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -53,7 +53,7 @@ static int version(lua_State *L) { return 3; } -#ifdef LUA_5_1 +#if LUA_VER == 51 lua_Integer lua_tointegerx(lua_State *L, int index, int *isnum) { if (isnum != NULL) *isnum = lua_isnumber(L,index); @@ -382,7 +382,7 @@ static const struct luaL_Reg lmdb_db[] = { static void mt(lua_State *L, const char *name, const struct luaL_Reg l[]) { luaL_newmetatable(L, name); -#ifdef LUA_5_1 +#if LUA_VER == 51 luaL_register(L, NULL, l); #else luaL_setfuncs(L, l, 0); @@ -432,7 +432,7 @@ int luaopen_lmdb(lua_State *L) { lua_setmetatable(L, -2); lua_setfield(L, LUA_REGISTRYINDEX, "lmdb.parentmap"); -#ifdef LUA_5_1 +#if LUA_VER == 51 lua_newtable(L); luaL_register(L, NULL, lmdb); #else |