diff --git a/src/lib_package.c b/src/lib_package.c index 9cb3f6b8..e8fc0ef7 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 4e01c5f1..f744c3a1 100644 --- a/src/lj_clib.c +++ b/src/lj_clib.c @@ -145,9 +145,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 6a4d6022..14473b80 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 d5f2d0f5..b297b315 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