]> granicus.if.org Git - vim/commitdiff
patch 8.2.2500: build fails without the GUI feature v8.2.2500
authorBram Moolenaar <Bram@vim.org>
Thu, 11 Feb 2021 18:18:58 +0000 (19:18 +0100)
committerBram Moolenaar <Bram@vim.org>
Thu, 11 Feb 2021 18:18:58 +0000 (19:18 +0100)
Problem:    Build fails without the GUI feature.
Solution:   Add #ifdef.

src/main.c
src/version.c

index 82e89a8cb76bfd9f531205146a299996008b0bc1..76252c7d1f1ba4f1376392adb9891c99b88e5c22 100644 (file)
@@ -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;
index 2f4a03eeedbe41f20de7476820798a87cd3c98c7..8918ec5fca01833d45c65fa229004654471c7bb6 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2500,
 /**/
     2499,
 /**/