summaryrefslogtreecommitdiff
path: root/solenv
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-03-04 14:18:24 +0100
committerMichael Stahl <mstahl@redhat.com>2015-03-05 15:36:46 +0100
commitb8d0203c809eaf49907c586f662453f4a8fda45b (patch)
tree5d5b321df58d48a499ce1d894ca9bd7f1842e8ad /solenv
parentd8dd6db19a9a37072a0dfbfc94f3690750ebd219 (diff)
gbuild: on WNT, target Windows XP with 7.1 SDK, and Vista with 8.x SDK
Since with the 8.x SDK it is not possible to target Windows XP anyway according to MSDN, just set _WIN32_WINNT to _WIN32_WINNT_VISTA so that we can at least work on cleaning up API calls deprecated in SDK 8.1. Change-Id: Ic433caf454f57187b91ef6fdec3f3bcde3f1af79
Diffstat (limited to 'solenv')
-rw-r--r--solenv/gbuild/platform/windows.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/solenv/gbuild/platform/windows.mk b/solenv/gbuild/platform/windows.mk
index 5602a0379119..ea0e476ec456 100644
--- a/solenv/gbuild/platform/windows.mk
+++ b/solenv/gbuild/platform/windows.mk
@@ -21,11 +21,12 @@ gb_Helper_LIBRARY_PATH_VAR := PATH
gb_MKTEMP := mktemp --tmpdir=$(gb_TMPDIR) gbuild.XXXXXX
# define _WIN32_WINNT and WINVER will be derived from it in sdkddkver.h
+# with a 7.1 SDK target Windows XP, with 8.x SDK target Windows Vista
# currently _WIN32_IE is defined to a higher version than would be derived
# in sdkddkver.h from _WIN32_WINNT=0x0502 but if _WIN32_WINNT >= 0x0600
# the derived value is sufficient
gb_OSDEFS := \
- -D_WIN32_WINNT=0x0502 \
+ -D_WIN32_WINNT=$(if $(filter 70,$(WINDOWS_SDK_VERSION)),0x0502,0x0600) \
-D_WIN32_IE=0x0700 \
-DWIN32 \
-DWNT \