summaryrefslogtreecommitdiff
path: root/include/cdlua.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/cdlua.h')
-rw-r--r--include/cdlua.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/cdlua.h b/include/cdlua.h
index 30d8174..465d09c 100644
--- a/include/cdlua.h
+++ b/include/cdlua.h
@@ -29,6 +29,11 @@ int cdlua_close(lua_State *L);
cdCanvas* cdlua_getcanvas(lua_State * L); /* pos=1, deprecated use cdlua_checkcanvas */
cdCanvas* cdlua_checkcanvas(lua_State * L, int pos);
void cdlua_pushcanvas(lua_State * L, cdCanvas* canvas);
+
+#if LUA_VERSION_NUM < 502
+#define luaL_typeerror luaL_typerror
+#endif
+
#endif
#ifdef __cplusplus