From f0153020b59255e6247e8e67d88991439f134164 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Sun, 13 Jul 2025 13:36:45 +0200 Subject: [PATCH] config-win32.h: fix default target for VS2012, also bump minimums to XP When using winbuild or Visual Studio IDE Project Files. According to CI, the default is Windows 8: ``` -- Found _WIN32_WINNT=0x0602 ``` Ref: https://ci.appveyor.com/project/curlorg/curl/builds/51594696/job/elbl0w5n7fmoos2f#L45 This also aligns with the default being Windows 7 for VS2010, and Windows Vista for VS2008. Also bump the minimum target to Windows XP, which is what curl supports and higher than what VS2008 is able to target. --- lib/config-win32.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/config-win32.h b/lib/config-win32.h index 363e7d85bf..9df18342e8 100644 --- a/lib/config-win32.h +++ b/lib/config-win32.h @@ -320,12 +320,12 @@ to be Windows XP. */ # define VS2008_DEF_TARGET 0x0501 - /* VS2012 default build target is Windows Vista unless Update 1 is installed + /* VS2012 default build target is Windows 8 unless Update 1 is installed and the v110_xp toolset is chosen. */ # ifdef _USING_V110_SDK71_ # define VS2012_DEF_TARGET 0x0501 # else -# define VS2012_DEF_TARGET 0x0600 +# define VS2012_DEF_TARGET 0x0602 # endif #endif