summaryrefslogtreecommitdiff
blob: ebd6eb27150c83f48df65b2db960684a35da6635 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff -ru crossfire-client-1.12.0-old/common/script_lua.c crossfire-client-1.12.0/common/script_lua.c
--- crossfire-client-1.12.0-old/common/script_lua.c	2009-04-04 13:43:43.000000000 -0400
+++ crossfire-client-1.12.0/common/script_lua.c	2009-12-13 00:45:32.020011661 -0500
@@ -44,6 +44,13 @@
 #include <lua.h>
 #include <lualib.h>
 
+/* luaL_newstate() is declared in lauxlib.h in Lua >= 5.1 
+ * and is needed to correct "implicit declaration" warnings. 
+ */
+#if LUA_VERSION_NUM >= 501
+#include <lauxlib.h>
+#endif
+
 struct script_state
 {
     lua_State* state;