]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.2.0876: GTK4: compile error with disabled netbeans feat v9.2.0876
authorFoxe Chen <chen.foxe@gmail.com>
Thu, 30 Jul 2026 18:23:25 +0000 (18:23 +0000)
committerChristian Brabandt <cb@256bit.org>
Thu, 30 Jul 2026 18:30:26 +0000 (18:30 +0000)
Problem:  GTK4: compile error with disabled netbeans feature
Solution: Add ifdefs (Foxe Chen)

closes: #20879

Signed-off-by: Foxe Chen <chen.foxe@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/gui_gtk4.c
src/version.c

index 45ee9f505d5995b8223eb9a6de42130bb3ca743f..f5fb4487dfce6d6a80a764121254250b4c616f54 100644 (file)
@@ -345,6 +345,7 @@ gui_mch_prepare(int *argc, char **argv)
        else if (arg_match(s, "-fg", &value)
                || arg_match(s, "-foreground", &value))
            foreground_argument = value;
+#ifdef FEAT_NETBEANS_INTG
        else if (strncmp(s, "-nb", 3) == 0)
        {
            gui.dofork = false; // don't fork() when starting GUI
@@ -352,6 +353,7 @@ gui_mch_prepare(int *argc, char **argv)
            has_inline_value = TRUE; // -nb uses non standard syntax, just
                                     // remove the flag.
        }
+#endif
        else if (arg_match(s, "--prg-name", &value))
            // GTK4 specific
            prgname = value;
index 0f6a4742277a28602fdc24332d012cad80c7682f..e921a5c367f55145f3249e59f534048b708706c5 100644 (file)
@@ -758,6 +758,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    876,
 /**/
     875,
 /**/