From 279673ddfcff8e82cac0704d371ed405ad7a229b Mon Sep 17 00:00:00 2001
From: Mike Pall <mike>
Date: Sat, 21 Dec 2013 16:49:10 +0100
Subject: Fix MinGW build.

---
 src/lib_package.c | 3 ---
 src/lj_clib.c     | 3 ---
 src/ljamalg.c     | 2 +-
 src/luaconf.h     | 3 +++
 4 files changed, 4 insertions(+), 7 deletions(-)

(limited to 'src')

diff --git a/src/lib_package.c b/src/lib_package.c
index f0e672d2..61b015ba 100644
--- a/src/lib_package.c
+++ b/src/lib_package.c
@@ -68,9 +68,6 @@ static const char *ll_bcsym(void *lib, const char *sym)
 #elif LJ_TARGET_WINDOWS
 
 #define WIN32_LEAN_AND_MEAN
-#ifndef WINVER
-#define WINVER 0x0500
-#endif
 #include <windows.h>
 
 #ifndef GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS
diff --git a/src/lj_clib.c b/src/lj_clib.c
index dd903a73..2c85fb98 100644
--- a/src/lj_clib.c
+++ b/src/lj_clib.c
@@ -144,9 +144,6 @@ static void *clib_getsym(CLibrary *cl, const char *name)
 #elif LJ_TARGET_WINDOWS
 
 #define WIN32_LEAN_AND_MEAN
-#ifndef WINVER
-#define WINVER 0x0500
-#endif
 #include <windows.h>
 
 #ifndef GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS
diff --git a/src/ljamalg.c b/src/ljamalg.c
index 7226dd9e..f531f7d6 100644
--- a/src/ljamalg.c
+++ b/src/ljamalg.c
@@ -22,7 +22,7 @@
 #endif
 
 #ifndef WINVER
-#define WINVER 0x0500
+#define WINVER 0x0501
 #endif
 
 #include "lua.h"
diff --git a/src/luaconf.h b/src/luaconf.h
index 224bfada..a0fe77bd 100644
--- a/src/luaconf.h
+++ b/src/luaconf.h
@@ -6,6 +6,9 @@
 #ifndef luaconf_h
 #define luaconf_h
 
+#ifndef WINVER
+#define WINVER 0x0501
+#endif
 #include <limits.h>
 #include <stddef.h>
 
-- 
cgit v1.2.3-55-g6feb