1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-08 15:02:10 +03:00

Enable to build mod_lua against Lua 5.3.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1652886 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Guenter Knauf
2015-01-19 00:35:25 +00:00
parent 2f57f9208d
commit 53e7998820
2 changed files with 11 additions and 0 deletions

View File

@@ -46,6 +46,9 @@ XCFLAGS += \
# #
XDEFINES += \ XDEFINES += \
-DLUA_COMPAT_ALL \ -DLUA_COMPAT_ALL \
-DLUA_COMPAT_5_2 \
-DLUA_COMPAT_5_1 \
-DLUA_COMPAT_MODULE \
$(EOLIST) $(EOLIST)
# #

View File

@@ -43,6 +43,10 @@
/* Allow for Lua 5.2 backwards compatibility */ /* Allow for Lua 5.2 backwards compatibility */
#define LUA_COMPAT_ALL #define LUA_COMPAT_ALL
/* Allow for Lua 5.3 backwards compatibility */
#define LUA_COMPAT_5_2
#define LUA_COMPAT_5_1
#define LUA_COMPAT_MODULE
#include "lua.h" #include "lua.h"
#include "lauxlib.h" #include "lauxlib.h"
@@ -55,6 +59,10 @@
#else #else
#define lua_rawlen(L,i) lua_objlen(L, (i)) #define lua_rawlen(L,i) lua_objlen(L, (i))
#endif #endif
#if LUA_VERSION_NUM > 502
/* Load mode for lua_dump() */
#define lua_dump(a,b,c) lua_dump(a,b,c,0)
#endif
/* Create a set of AP_LUA_DECLARE(type), AP_LUA_DECLARE_NONSTD(type) and /* Create a set of AP_LUA_DECLARE(type), AP_LUA_DECLARE_NONSTD(type) and
* AP_LUA_DECLARE_DATA with appropriate export and import tags for the platform * AP_LUA_DECLARE_DATA with appropriate export and import tags for the platform