Jelajahi Sumber

include of 'windows.h' moved to where it is needed

Roberto Ierusalimschy 15 tahun lalu
induk
melakukan
572b94bbcb
2 mengubah file dengan 3 tambahan dan 3 penghapusan
  1. 2 1
      loadlib.c
  2. 1 2
      luaconf.h

+ 2 - 1
loadlib.c

@@ -1,5 +1,5 @@
 /*
-** $Id: loadlib.c,v 1.74 2010/01/11 16:10:47 roberto Exp roberto $
+** $Id: loadlib.c,v 1.75 2010/01/11 17:06:31 roberto Exp roberto $
 ** Dynamic library loader for Lua
 ** See Copyright Notice in lua.h
 **
@@ -129,6 +129,7 @@ static lua_CFunction ll_sym (lua_State *L, void *lib, const char *sym) {
 ** =======================================================================
 */
 
+#include <windows.h>
 
 #undef setprogdir
 

+ 1 - 2
luaconf.h

@@ -1,5 +1,5 @@
 /*
-** $Id: luaconf.h,v 1.127 2010/01/06 15:15:04 roberto Exp roberto $
+** $Id: luaconf.h,v 1.128 2010/01/11 16:35:20 roberto Exp roberto $
 ** Configuration file for Lua
 ** See Copyright Notice in lua.h
 */
@@ -34,7 +34,6 @@
 #endif
 
 #if defined(LUA_WIN)
-#include <windows.h>
 #define LUA_DL_DLL
 #endif