]> granicus.if.org Git - vim/commitdiff
patch 8.1.2199: build failure when using normal features without GUI v8.1.2199
authorBram Moolenaar <Bram@vim.org>
Tue, 22 Oct 2019 19:45:19 +0000 (21:45 +0200)
committerBram Moolenaar <Bram@vim.org>
Tue, 22 Oct 2019 19:45:19 +0000 (21:45 +0200)
Problem:    Build failure when using normal features without GUI and EXITFREE
            defined.
Solution:   Add #ifdef. (Dominique Pelle, closes #5106)

src/scriptfile.c
src/version.c

index 611be04c85273dc2e645d033ca9bbf98e7323c83..740950f0537f91fdd3af923ff3f15009a2480441 100644 (file)
@@ -1360,7 +1360,9 @@ free_scriptnames(void)
     for (i = script_items.ga_len; i > 0; --i)
     {
        vim_free(SCRIPT_ITEM(i).sn_name);
+#  ifdef FEAT_PROFILE
        ga_clear(&SCRIPT_ITEM(i).sn_prl_ga);
+#  endif
     }
     ga_clear(&script_items);
 }
index 77e6e35bec51ab28cfd9c45bb1deb9ead79cab0e..f6e0b76e6524af26872eea6dafd557f35d699956 100644 (file)
@@ -741,6 +741,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2199,
 /**/
     2198,
 /**/