Mercurial > vim
changeset 27501:378d3f7483e9 v8.2.4278
patch 8.2.4278: build with Athena GUI fails
Commit: https://github.com/vim/vim/commit/4e3b3182307444f205a5f35e257c651f0f3717ad
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Feb 1 10:16:00 2022 +0000
patch 8.2.4278: build with Athena GUI fails
Problem: Build with Athena GUI fails. (Elimar Riesebieter)
Solution: Add #ifdef.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 01 Feb 2022 11:30:03 +0100 |
parents | 0fb94e0df02d |
children | aad2a09123be |
files | src/testing.c src/version.c |
diffstat | 2 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/testing.c +++ b/src/testing.c @@ -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 UNUSE 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)