Ensure all four required version defines are set for windows builds

svn path=/trunk/netsurf/; revision=12082
This commit is contained in:
Vincent Sanders 2011-03-16 22:19:44 +00:00
parent 7f41b913c9
commit b96104fe8f
5 changed files with 6 additions and 6 deletions

View File

@ -28,8 +28,11 @@
-lgdi32 -lcomctl32 -lws2_32 -lmsimg32 -mwindows
CFLAGS += -U__STRICT_ANSI__ -mwin32
# only windows versions after 2000 are supported
CFLAGS += '-DWINVER=0x0500'
# only windows versions after XP are supported
CFLAGS += '-DWINVER=0x0501'
CFLAGS += '-D_WIN32_WINNT=0x0501'
CFLAGS += '-D_WIN32_WINDOWS=0x0501'
CFLAGS += '-D_WIN32_IE=0x0501'
WSCFLAGS := -std=c99 \
$(WARNFLAGS) -I. -I${MINGW_INSTALL_ENV}/include/ \
-DCURL_STATICLIB -DLIBXML_STATIC -g

View File

@ -17,7 +17,6 @@
*/
#include <limits.h>
#define _WIN32_IE 0x0500
#include <windows.h>
#include <shlobj.h>
#include <sys/time.h>

View File

@ -27,7 +27,6 @@
#include <windows.h>
#include <windowsx.h>
#define _WIN32_IE (0x0501)
#include <commctrl.h>
#include "content/urldb.h"

View File

@ -18,7 +18,6 @@
#include <windows.h>
#include <windowsx.h>
#define _WIN32_IE (0x0501)
#include <commctrl.h>
#include "desktop/browser.h"

View File

@ -17,8 +17,8 @@
*/
#include <windows.h>
#define _WIN32_IE (0x0501)
#include <commctrl.h>
#include "desktop/options.h"
#include "utils/log.h"
#include "utils/messages.h"