Fix MinGW build.

This commit is contained in:
Mike Pall 2013-12-21 16:49:10 +01:00
parent 0ded8e82a8
commit 279673ddfc
4 changed files with 4 additions and 7 deletions

View File

@ -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

View File

@ -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

View File

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

View File

@ -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>