diff options
author | Austin Seipp <austin@well-typed.com> | 2013-10-26 20:13:55 -0500 |
---|---|---|
committer | Austin Seipp <austin@well-typed.com> | 2013-10-26 20:16:44 -0500 |
commit | 94c8dfa2f43441c4074f5bcead6ee54f5fd63ffb (patch) | |
tree | 056e03c43be907dedbfce4702412f7f6bb4d6850 | |
parent | f66c64359f1e2b24025e8c7d5a2bb87177fdee48 (diff) | |
download | haskell-94c8dfa2f43441c4074f5bcead6ee54f5fd63ffb.tar.gz |
Fix Windows build.
GlobalMemoryStatusEx actually requires _WIN32_WINNT to be defined as
0x0501 (Windows XP) for availability.
For completeness, I bumped WIN32_WINNT in Ticker and OSThreads as well.
Signed-off-by: Austin Seipp <austin@well-typed.com>
-rw-r--r-- | rts/win32/OSMem.c | 2 | ||||
-rw-r--r-- | rts/win32/OSThreads.c | 2 | ||||
-rw-r--r-- | rts/win32/Ticker.c | 4 |
3 files changed, 5 insertions, 3 deletions
diff --git a/rts/win32/OSMem.c b/rts/win32/OSMem.c index f350076c94..082b8dec7f 100644 --- a/rts/win32/OSMem.c +++ b/rts/win32/OSMem.c @@ -6,6 +6,8 @@ * * ---------------------------------------------------------------------------*/ +#define _WIN32_WINNT 0x0501 + #include "Rts.h" #include "sm/OSMem.h" #include "RtsUtils.h" diff --git a/rts/win32/OSThreads.c b/rts/win32/OSThreads.c index d0d97b3c4d..765cf899c3 100644 --- a/rts/win32/OSThreads.c +++ b/rts/win32/OSThreads.c @@ -7,7 +7,7 @@ * * --------------------------------------------------------------------------*/ -#define _WIN32_WINNT 0x0500 +#define _WIN32_WINNT 0x0501 #include "Rts.h" #include <windows.h> diff --git a/rts/win32/Ticker.c b/rts/win32/Ticker.c index d54fa4680f..89902e568d 100644 --- a/rts/win32/Ticker.c +++ b/rts/win32/Ticker.c @@ -1,8 +1,8 @@ /* * RTS periodic timers. - * + * */ -#define _WIN32_WINNT 0x0500 +#define _WIN32_WINNT 0x0501 #include "Rts.h" #include "Ticker.h" |