aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/compat.c2
-rw-r--r--src/compat.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/compat.c b/src/compat.c
index 2d2bec9..0842496 100644
--- a/src/compat.c
+++ b/src/compat.c
@@ -1,7 +1,7 @@
1#include <lua.h> 1#include <lua.h>
2#include <lauxlib.h> 2#include <lauxlib.h>
3 3
4#if LUA_VERSION_NUM == 501 4#if LUA_VERSION_NUM == 501 && !defined(LUAJIT_VERSION)
5void luaL_setfuncs(lua_State *L, const luaL_Reg *l, int nup) { 5void luaL_setfuncs(lua_State *L, const luaL_Reg *l, int nup) {
6 luaL_checkstack(L, nup+1, "too many upvalues"); 6 luaL_checkstack(L, nup+1, "too many upvalues");
7 for (; l->name != NULL; l++) { /* fill the table with given functions */ 7 for (; l->name != NULL; l++) { /* fill the table with given functions */
diff --git a/src/compat.h b/src/compat.h
index 2033aa3..f9e07ad 100644
--- a/src/compat.h
+++ b/src/compat.h
@@ -4,7 +4,7 @@
4#include <lua.h> 4#include <lua.h>
5#include <lauxlib.h> 5#include <lauxlib.h>
6 6
7#if LUA_VERSION_NUM == 501 7#if LUA_VERSION_NUM == 501 && !defined(LUAJIT_VERSION)
8void luaL_setfuncs(lua_State *L, const luaL_Reg *l, int nup); 8void luaL_setfuncs(lua_State *L, const luaL_Reg *l, int nup);
9void *luaL_testudata(lua_State *L, int ud, const char *tname); 9void *luaL_testudata(lua_State *L, int ud, const char *tname);
10#endif 10#endif