]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.2.0393: MS-Windows: link error with XPM support on UCRT64 v9.2.0393
authorYasuhiro Matsumoto <mattn.jp@gmail.com>
Sun, 26 Apr 2026 07:57:14 +0000 (07:57 +0000)
committerChristian Brabandt <cb@256bit.org>
Sun, 26 Apr 2026 07:57:14 +0000 (07:57 +0000)
Problem:  MS-Windows: link error with XPM support on UCRT64
Solution: Make_cyg_ming.mak: allow XPM to point to system layout with
          X11/ headers (Yasuhiro Matsumoto)

When XPM is set to a system prefix such as /msys64/ucrt64 (where xpm.h
lives in include/X11/), the existing -I flags miss the header.  Add
-I $(XPM)/include/X11 so both the bundled layout (xpm/include/xpm.h)
and the system layout (include/X11/xpm.h) work.

closes: #20064

Signed-off-by: Yasuhiro Matsumoto <mattn.jp@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/Make_cyg_ming.mak
src/version.c

index 0cb83ac484fe9330e29bb9a27a5672fec7404113..f5b86eeb422f549a33792080e81e31476cfdd220 100644 (file)
@@ -744,7 +744,7 @@ XPM = no
  endif
  ifdef XPM
   ifneq ($(XPM),no)
-CFLAGS += -DFEAT_XPM_W32 -I $(XPM)/include -I $(XPM)/../include
+CFLAGS += -DFEAT_XPM_W32 -I $(XPM)/include -I $(XPM)/include/X11 -I $(XPM)/../include
   endif
  endif
 
index 8d6be2e96cce05dc11bf8acfb16a30a44a7785d7..d4b5c51000351628856c78b63cda38bb027e9880 100644 (file)
@@ -729,6 +729,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    393,
 /**/
     392,
 /**/