]> granicus.if.org Git - curl/commitdiff
schannel: fix compile break with MSVC XP toolset
authorMarcel Raad <MarcelRaad@users.noreply.github.com>
Wed, 18 May 2016 09:54:58 +0000 (11:54 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 18 May 2016 10:52:41 +0000 (12:52 +0200)
For the Windows XP toolset of Visual C++ 2013/2015, the old Windows SDK
7.1 is used. In this case, _USING_V110_SDK71_ is defined.

Closes #812

lib/vtls/schannel.c

index a2fba735254124d3243836455a64c8adf13dd645..b2e926563829de703e3b6e708189bf76f4d8b13b 100644 (file)
@@ -63,7 +63,7 @@
 
 /* ALPN requires version 8.1 of the  Windows SDK, which was
    shipped with Visual Studio 2013, aka _MSC_VER 1800*/
-#if defined(_MSC_VER) && (_MSC_VER >= 1800)
+#if defined(_MSC_VER) && (_MSC_VER >= 1800) && !defined(_USING_V110_SDK71_)
 #  define HAS_ALPN 1
 #endif