summaryrefslogtreecommitdiff
path: root/lib/config-win32.h
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2014-11-18 00:01:27 +0000
committerSteve Holme <steve_holme@hotmail.com>2014-11-17 23:49:05 +0000
commit6cc79dc79ddac4289544abb50006fe587cc53a4d (patch)
tree73ca48f4dacf38a348482056d281d80ff93ea01f /lib/config-win32.h
parent62a6230e1cd141a154c1c008f2564a61486ea5ce (diff)
downloadcurl-6cc79dc79ddac4289544abb50006fe587cc53a4d.tar.gz
config-win32: Fixed build targets for the VS2012+ Windows XP toolset
Even though commit 23e70e1cc6 mentioned the v110_xp toolset, I had forgotten to include the relevant pre-processor definitions.
Diffstat (limited to 'lib/config-win32.h')
-rw-r--r--lib/config-win32.h23
1 files changed, 18 insertions, 5 deletions
diff --git a/lib/config-win32.h b/lib/config-win32.h
index ef6020ab5..684da7ae5 100644
--- a/lib/config-win32.h
+++ b/lib/config-win32.h
@@ -514,14 +514,23 @@
/* The minimum build target for VS2012 is Vista unless Update 1 is installed
and the v110_xp toolset is choosen. */
-# define VS2012_MIN_TARGET 0x0600
+# if defined(_USING_V110_SDK71_)
+# define VS2012_MIN_TARGET 0x0501
+# else
+# define VS2012_MIN_TARGET 0x0600
+# endif
/* VS2008 default build target is Windows Vista. We override default target
to be Windows XP. */
-# define VS2008_DEF_TARGET 0x0501
+# define VS2008_DEF_TARGET 0x0501
- /* VS2012 default build target is Windows Vista. */
-# define VS2012_DEF_TARGET 0x0600
+ /* VS2012 default build target is Windows Vista unless Update 1 is installed
+ and the v110_xp toolset is choosen. */
+# if defined(_USING_V110_SDK71_)
+# define VS2012_DEF_TARGET 0x0501
+# else
+# define VS2012_DEF_TARGET 0x0600
+# endif
#endif
/* VS2008 default target settings and minimum build target check. */
@@ -546,7 +555,11 @@
# define WINVER VS2012_DEF_TARGET
# endif
# if (_WIN32_WINNT < VS2012_MIN_TARGET) || (WINVER < VS2012_MIN_TARGET)
-# error VS2012 does not support Windows build targets prior to Windows Vista
+# if defined(_USING_V110_SDK71_)
+# error VS2012 does not support Windows build targets prior to Windows XP
+# else
+# error VS2012 does not support Windows build targets prior to Windows Vista
+# endif
# endif
#endif