]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
LUA_COMPAT_ALL should be defined _before_ including lua headers
authorDaniel Gruno <humbedooh@apache.org>
Sat, 28 Jul 2012 09:09:07 +0000 (09:09 +0000)
committerDaniel Gruno <humbedooh@apache.org>
Sat, 28 Jul 2012 09:09:07 +0000 (09:09 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1366621 13f79535-47bb-0310-9956-ffa450edef68

modules/lua/mod_lua.h

index 717b9d4f7f40cab9f34fc833ace2ce8be7fcf6e4..40add312908a7eb04aa60d8c13b1eaccdb212f4d 100644 (file)
 #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)