From: Daniel Gruno Date: Sat, 28 Jul 2012 09:09:07 +0000 (+0000) Subject: LUA_COMPAT_ALL should be defined _before_ including lua headers X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e52e67cc44173d8c9316aa1d1b6af76b0afc699e;p=thirdparty%2Fapache%2Fhttpd.git 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 --- 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)