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-Tag: 2.5.0-alpha~6578 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=759dfc8e96410cb407b77125f73d604efd1d70fb;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)