changeset 18410:b5b2e3b824c2 v8.1.2199

patch 8.1.2199: build failure when using normal features without GUI Commit: https://github.com/vim/vim/commit/a720be78d7978b3b853ff6c8af0d1721d6225378 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Oct 22 21:45:19 2019 +0200 patch 8.1.2199: build failure when using normal features without GUI Problem: Build failure when using normal features without GUI and EXITFREE defined. Solution: Add #ifdef. (Dominique Pelle, closes #5106)
author Bram Moolenaar <Bram@vim.org>
date Tue, 22 Oct 2019 22:00:04 +0200
parents 7ca16569d89d
children a100cc3da45a
files src/scriptfile.c src/version.c
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/scriptfile.c
+++ b/src/scriptfile.c
@@ -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);
 }
--- a/src/version.c
+++ b/src/version.c
@@ -742,6 +742,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    2199,
+/**/
     2198,
 /**/
     2197,