]> granicus.if.org Git - vim/commitdiff
patch 8.0.1474: Visual C 2017 has multiple MSVCVER numbers v8.0.1474
authorBram Moolenaar <Bram@vim.org>
Tue, 6 Feb 2018 21:02:43 +0000 (22:02 +0100)
committerBram Moolenaar <Bram@vim.org>
Tue, 6 Feb 2018 21:02:43 +0000 (22:02 +0100)
Problem:    Visual C 2017 has multiple MSVCVER numbers.
Solution:   Assume the 2017 version if MSVCVER >= 1910. (Leonardo Valeri
            Manera, closes #2619)

src/Make_mvc.mak
src/version.c

index c2e808c954adbe5abaa7e3131b20daaa2b53fdbd..65da331b7308fd5ad2c40e948c4fd43c626af81d 100644 (file)
@@ -289,7 +289,8 @@ MSVC_MAJOR = ($(MSVCVER) / 100 - 6)
 MSVCRT_VER = ($(MSVCVER) / 10 - 60)
 # Visual C++ 2017 needs special handling
 # it has an _MSC_VER of 1910->14.1, but is actually v15 with runtime v140
-!elseif $(MSVCVER) == 1910
+# TODO: what's the maximum value?
+!elseif $(MSVCVER) >= 1910
 MSVC_MAJOR = 15
 MSVCRT_VER = 140
 !else
index 8f3430399981bd7a47f899dcdac13169cf0547d7..350c83067891bb9a52bd03c2f6fa7b491017a67c 100644 (file)
@@ -771,6 +771,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1474,
 /**/
     1473,
 /**/