changeset 27100:48dbb16eea52 v8.2.4079

patch 8.2.4079: MS-Windows: "gvim --version" didn't work with VIMDLL Commit: https://github.com/vim/vim/commit/33b25d1317e4c06ec6b1cafb46ea9cde475a61ae Author: K.Takata <kentkt@csc.jp> Date: Thu Jan 13 16:06:45 2022 +0000 patch 8.2.4079: MS-Windows: "gvim --version" didn't work with VIMDLL Problem: MS-Windows: "gvim --version" didn't work when build with VIMDLL. Solution: Adjust #ifdef. (Ken Takata, closes https://github.com/vim/vim/issues/9517)
author Bram Moolenaar <Bram@vim.org>
date Thu, 13 Jan 2022 17:15:04 +0100
parents a734cd18d1aa
children 5a9b25eb9b33
files src/main.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/main.c
+++ b/src/main.c
@@ -2004,7 +2004,7 @@ 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)
+#if defined(FEAT_GUI) && !defined(ALWAYS_USE_GUI) && !defined(VIMDLL)
 		    gui.starting = FALSE; // not starting GUI, will exit
 #endif
 		    list_version();
--- 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 */
 /**/
+    4079,
+/**/
     4078,
 /**/
     4077,