From 7b167c68d302e812d7dd1d4b412de4a242d4522b Mon Sep 17 00:00:00 2001 From: Rainer Jung Date: Wed, 1 Feb 2012 09:51:59 +0000 Subject: [PATCH] Remove luaL_reg macro definition no longer needed and simplify lua_load compatibility macro. Note that in order to successfully compile with Lua 5.2.0 we still need to add LUA_COMPAT_ALL to CPPFLAGS. Detection in config.m4 is still missing. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1239030 13f79535-47bb-0310-9956-ffa450edef68 --- modules/lua/mod_lua.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/modules/lua/mod_lua.h b/modules/lua/mod_lua.h index 29ab38afe3..5394f7a485 100644 --- a/modules/lua/mod_lua.h +++ b/modules/lua/mod_lua.h @@ -46,9 +46,7 @@ #if LUA_VERSION_NUM > 501 /* Load mode for lua_load() */ -#define DFLT_LUA_LOAD_MODE "bt" -#define lua_load(a,b,c,d) lua_load(a,b,c,d,DFLT_LUA_LOAD_MODE) -#define luaL_reg luaL_Reg +#define lua_load(a,b,c,d) lua_load(a,b,c,d,NULL) #endif /* Create a set of AP_LUA_DECLARE(type), AP_LUA_DECLARE_NONSTD(type) and -- 2.50.1