]> granicus.if.org Git - vim/commitdiff
patch 8.2.4278: build with Athena GUI fails v8.2.4278
authorBram Moolenaar <Bram@vim.org>
Tue, 1 Feb 2022 10:16:00 +0000 (10:16 +0000)
committerBram Moolenaar <Bram@vim.org>
Tue, 1 Feb 2022 10:16:00 +0000 (10:16 +0000)
Problem:    Build with Athena GUI fails. (Elimar Riesebieter)
Solution:   Add #ifdef.

src/testing.c
src/version.c

index 6fcbaa72abbb99abd2788975ca7d7eb44e7619dc..448c01c1e9648b9d62a4053786d160ece408aadb 100644 (file)
@@ -1331,6 +1331,7 @@ test_gui_drop_files(dict_T *args UNUSED)
     return TRUE;
 }
 
+#if defined(FIND_REPLACE_DIALOG)
     static int
 test_gui_find_repl(dict_T *args)
 {
@@ -1357,6 +1358,7 @@ test_gui_find_repl(dict_T *args)
 
     return retval;
 }
+#endif
 
     static int
 test_gui_mouse_event(dict_T *args)
@@ -1476,8 +1478,10 @@ f_test_gui_event(typval_T *argvars UNUSED, typval_T *rettv UNUSED)
     event = tv_get_string(&argvars[0]);
     if (STRCMP(event, "dropfiles") == 0)
        rettv->vval.v_number = test_gui_drop_files(argvars[1].vval.v_dict);
+#  if defined(FIND_REPLACE_DIALOG)
     else if (STRCMP(event, "findrepl") == 0)
        rettv->vval.v_number = test_gui_find_repl(argvars[1].vval.v_dict);
+#  endif
     else if (STRCMP(event, "mouse") == 0)
        rettv->vval.v_number = test_gui_mouse_event(argvars[1].vval.v_dict);
     else if (STRCMP(event, "scrollbar") == 0)
index 0dc936ab3f300743051be981d7780dc0117c968f..955047888f1797a4d8cdfdb39b84aff3b65c6480 100644 (file)
@@ -746,6 +746,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    4278,
 /**/
     4277,
 /**/