summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/cdlua.h4
-rw-r--r--include/cdlua5_private.h3
2 files changed, 3 insertions, 4 deletions
diff --git a/include/cdlua.h b/include/cdlua.h
index 465d09c..a353dd8 100644
--- a/include/cdlua.h
+++ b/include/cdlua.h
@@ -30,10 +30,6 @@ cdCanvas* cdlua_getcanvas(lua_State * L); /* pos=1, deprecated use cdlua_checkca
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
diff --git a/include/cdlua5_private.h b/include/cdlua5_private.h
index 974fb4e..3051fb6 100644
--- a/include/cdlua5_private.h
+++ b/include/cdlua5_private.h
@@ -133,6 +133,9 @@ void cdlua_pushbitmap(lua_State* L, cdBitmap* bitmap);
void cdlua_pushimagergb_ex(lua_State* L, unsigned char* red, unsigned char* green, unsigned char* blue, int width, int height);
void cdlua_pushimagergba_ex(lua_State* L, unsigned char* red, unsigned char* green, unsigned char* blue, unsigned char* alpha, int width, int height);
+#if LUA_VERSION_NUM < 502
+#define luaL_typeerror luaL_typerror
+#endif
#ifdef __cplusplus
}