patch 9.2.0220: MS-Windows: some defined cannot be set on Cygwin/Mingw

Commit: 
https://github.com/vim/vim/commit/2f8bd14198f51930052a6427e9f1881ce089628c
Author: Muraoka Taro <[email protected]>
Date:   Sun Mar 22 15:32:57 2026 +0000

    patch 9.2.0220: MS-Windows: some defined cannot be set on Cygwin/Mingw
    
    Problem:  In Cygwin and MinGW, options like MODIFIED_BY cannot be set.
              MSVC (Make_mvc.mak) allows you to build optional features
              without modifying the source code by specifying DEFINES in the
              nmake options. However, this is not the case in
              Make_cyg_ming.mak.
    Solution: Since DEFINES is used in many places, we will provide
              EXTRA_DEFINES assuming that the user will define it. By adding
              this to DEFINES, it will be possible to specify it in the same
              way as in MSVC.
    
    closes: #19786
    
    Signed-off-by: Muraoka Taro <[email protected]>
    Signed-off-by: Christian Brabandt <[email protected]>

diff --git a/src/Make_cyg_ming.mak b/src/Make_cyg_ming.mak
index 9ec5ef8e0..0cb83ac48 100644
--- a/src/Make_cyg_ming.mak
+++ b/src/Make_cyg_ming.mak
@@ -25,7 +25,14 @@
 #     http://www.matcode.com/mpress.htm
 #
 # Maintained by Ron Aaron <[email protected]> et al.
-# Last Update: 2025 May 14.
+# Last Update: 2026 Mar 22.
+
+# If you want to build some optional features without modifying the source, you
+# can set EXTRA_DEFINES on the command line. Here's an example of setting
+# MODIFIED_BY:
+#
+#      mingw-make -f Make_ming.mvc \
+#        'EXTRA_DEFINES=-DMODIFIED_BY=\"[email protected]\"'
 
 #>>>>> choose options:
 # FEATURES=[TINY | NORMAL | HUGE]
@@ -536,7 +543,8 @@ endif # RUBY
 # Any other defines can be included here.
 DEF_GUI=-DFEAT_GUI_MSWIN -DFEAT_CLIPBOARD
 DEFINES=-DWIN32 -DWINVER=$(WINVER) -D_WIN32_WINNT=$(WINVER) \
-       -DHAVE_PATHDEF -DFEAT_$(FEATURES) -DHAVE_STDINT_H
+       -DHAVE_PATHDEF -DFEAT_$(FEATURES) -DHAVE_STDINT_H \
+       $(EXTRA_DEFINES)
 
 #>>>>> end of choices
 ###########################################################################
diff --git a/src/version.c b/src/version.c
index 3b956fd2d..f314e46b1 100644
--- a/src/version.c
+++ b/src/version.c
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    220,
 /**/
     219,
 /**/

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/E1w4Kz9-000d7C-FT%40256bit.org.

Raspunde prin e-mail lui