Browse Source

Fix MinGW build.

Mike Pall 11 years ago
parent
commit
279673ddfc
4 changed files with 4 additions and 7 deletions
  1. 0 3
      src/lib_package.c
  2. 0 3
      src/lj_clib.c
  3. 1 1
      src/ljamalg.c
  4. 3 0
      src/luaconf.h

+ 0 - 3
src/lib_package.c

@@ -68,9 +68,6 @@ static const char *ll_bcsym(void *lib, const char *sym)
 #elif LJ_TARGET_WINDOWS
 #elif LJ_TARGET_WINDOWS
 
 
 #define WIN32_LEAN_AND_MEAN
 #define WIN32_LEAN_AND_MEAN
-#ifndef WINVER
-#define WINVER 0x0500
-#endif
 #include <windows.h>
 #include <windows.h>
 
 
 #ifndef GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS
 #ifndef GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS

+ 0 - 3
src/lj_clib.c

@@ -144,9 +144,6 @@ static void *clib_getsym(CLibrary *cl, const char *name)
 #elif LJ_TARGET_WINDOWS
 #elif LJ_TARGET_WINDOWS
 
 
 #define WIN32_LEAN_AND_MEAN
 #define WIN32_LEAN_AND_MEAN
-#ifndef WINVER
-#define WINVER 0x0500
-#endif
 #include <windows.h>
 #include <windows.h>
 
 
 #ifndef GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS
 #ifndef GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS

+ 1 - 1
src/ljamalg.c

@@ -22,7 +22,7 @@
 #endif
 #endif
 
 
 #ifndef WINVER
 #ifndef WINVER
-#define WINVER 0x0500
+#define WINVER 0x0501
 #endif
 #endif
 
 
 #include "lua.h"
 #include "lua.h"

+ 3 - 0
src/luaconf.h

@@ -6,6 +6,9 @@
 #ifndef luaconf_h
 #ifndef luaconf_h
 #define luaconf_h
 #define luaconf_h
 
 
+#ifndef WINVER
+#define WINVER 0x0501
+#endif
 #include <limits.h>
 #include <limits.h>
 #include <stddef.h>
 #include <stddef.h>