changeset 23915:40fe7d8a3c93 v8.2.2500

patch 8.2.2500: build fails without the GUI feature Commit: https://github.com/vim/vim/commit/0bcadf14aa700c166c09f1800ed3de00b9598b39 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Feb 11 19:18:58 2021 +0100 patch 8.2.2500: build fails without the GUI feature Problem: Build fails without the GUI feature. Solution: Add #ifdef.
author Bram Moolenaar <Bram@vim.org>
date Thu, 11 Feb 2021 19:30:04 +0100
parents b56544307168
children cdb1a04f8189
files src/main.c src/version.c
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/main.c
+++ b/src/main.c
@@ -1979,7 +1979,9 @@ command_line_scan(mparm_T *parmp)
 		{
 		    Columns = 80;	// need to init Columns
 		    info_message = TRUE; // use mch_msg(), not mch_errmsg()
+#if defined(FEAT_GUI) && !defined(ALWAYS_USE_GUI)
 		    gui.starting = FALSE; // not starting GUI, will exit
+#endif
 		    list_version();
 		    msg_putchar('\n');
 		    msg_didout = FALSE;
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    2500,
+/**/
     2499,
 /**/
     2498,