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.
This commit is contained in:
Viktor Szakats 2025-07-13 13:36:45 +02:00
parent 245783338c
commit f0153020b5
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201

View file

@ -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