From 17f43316c1acd90bd48d05b8eda6de35c5b9745f Mon Sep 17 00:00:00 2001 From: lostsnow Date: Tue, 6 Jun 2017 13:20:55 +0800 Subject: [PATCH] fixes compile with latest luajit 2.1 --- int64.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/int64.c b/int64.c index ecd8a76..e2cddf5 100644 --- a/int64.c +++ b/int64.c @@ -114,6 +114,8 @@ typedef struct stack_info { #define LUA_OPLE 2 +#if !defined(luaL_newlibtable) + static lua_Integer lua_tointegerx (lua_State *L, int idx, int *isnum) { lua_Integer n = lua_tointeger(L, idx); if (isnum) *isnum = (n != 0 || lua_type(L, idx) == LUA_TNUMBER); @@ -143,6 +145,8 @@ static void *luaL_testudata (lua_State *L, int ud, const char *tname) { return NULL; /* value is not a userdata with a metatable */ } +#endif + #endif /* } */ /* }================================================================= */