From 759dfc8e96410cb407b77125f73d604efd1d70fb Mon Sep 17 00:00:00 2001 From: Daniel Gruno Date: Sat, 28 Jul 2012 09:09:07 +0000 Subject: [PATCH] LUA_COMPAT_ALL should be defined _before_ including lua headers git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1366621 13f79535-47bb-0310-9956-ffa450edef68 --- modules/lua/mod_lua.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/lua/mod_lua.h b/modules/lua/mod_lua.h index 717b9d4f7f4..40add312908 100644 --- a/modules/lua/mod_lua.h +++ b/modules/lua/mod_lua.h @@ -40,12 +40,13 @@ #include "apr_time.h" #include "apr_hooks.h" +/* Allow for Lua 5.2 backwards compatibility */ +#define LUA_COMPAT_ALL + #include "lua.h" #include "lauxlib.h" #include "lualib.h" -/* Allow for Lua 5.2 backwards compatibility */ -#define LUA_COMPAT_ALL #if LUA_VERSION_NUM > 501 /* Load mode for lua_load() */ #define lua_load(a,b,c,d) lua_load(a,b,c,d,NULL) -- 2.47.2