Skip to content

Commit

Permalink
patch 8.2.4278: build with Athena GUI fails
Browse files Browse the repository at this point in the history
Problem:    Build with Athena GUI fails. (Elimar Riesebieter)
Solution:   Add #ifdef.
  • Loading branch information
brammool committed Feb 1, 2022
1 parent 68854a8 commit 4e3b318
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/testing.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand All @@ -1357,6 +1358,7 @@ test_gui_find_repl(dict_T *args)

return retval;
}
#endif

static int
test_gui_mouse_event(dict_T *args)
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -746,6 +746,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
4278,
/**/
4277,
/**/
Expand Down

0 comments on commit 4e3b318

Please sign in to comment.