aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Pall <mike>2013-12-21 16:49:10 +0100
committerMike Pall <mike>2013-12-21 16:49:10 +0100
commit279673ddfcff8e82cac0704d371ed405ad7a229b (patch)
treeb55aa7589656845d7d01a4e9f34be0e77cd24618 /src
parent0ded8e82a88fadb40b4dd7e6632311781f1b2f91 (diff)
downloadluajit-279673ddfcff8e82cac0704d371ed405ad7a229b.tar.gz
luajit-279673ddfcff8e82cac0704d371ed405ad7a229b.tar.bz2
luajit-279673ddfcff8e82cac0704d371ed405ad7a229b.zip
Fix MinGW build.
Diffstat (limited to 'src')
-rw-r--r--src/lib_package.c3
-rw-r--r--src/lj_clib.c3
-rw-r--r--src/ljamalg.c2
-rw-r--r--src/luaconf.h3
4 files changed, 4 insertions, 7 deletions
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)
68#elif LJ_TARGET_WINDOWS 68#elif LJ_TARGET_WINDOWS
69 69
70#define WIN32_LEAN_AND_MEAN 70#define WIN32_LEAN_AND_MEAN
71#ifndef WINVER
72#define WINVER 0x0500
73#endif
74#include <windows.h> 71#include <windows.h>
75 72
76#ifndef GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS 73#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)
144#elif LJ_TARGET_WINDOWS 144#elif LJ_TARGET_WINDOWS
145 145
146#define WIN32_LEAN_AND_MEAN 146#define WIN32_LEAN_AND_MEAN
147#ifndef WINVER
148#define WINVER 0x0500
149#endif
150#include <windows.h> 147#include <windows.h>
151 148
152#ifndef GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS 149#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 @@
22#endif 22#endif
23 23
24#ifndef WINVER 24#ifndef WINVER
25#define WINVER 0x0500 25#define WINVER 0x0501
26#endif 26#endif
27 27
28#include "lua.h" 28#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 @@
6#ifndef luaconf_h 6#ifndef luaconf_h
7#define luaconf_h 7#define luaconf_h
8 8
9#ifndef WINVER
10#define WINVER 0x0501
11#endif
9#include <limits.h> 12#include <limits.h>
10#include <stddef.h> 13#include <stddef.h>
11 14