From: Mike Pall Date: Sat, 21 Dec 2013 15:49:10 +0000 (+0100) Subject: Fix MinGW build. X-Git-Tag: v2.0.3~23 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=279673ddfcff8e82cac0704d371ed405ad7a229b;p=thirdparty%2FLuaJIT.git Fix MinGW build. --- 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 #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 #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 #include