patch 8.1.1403: cannot build without the timer feature
Problem: Cannot build without the timer feature.
Solution: Add #ifdef.
diff --git a/src/window.c b/src/window.c
index 2cd35a4..95b97d8 100644
--- a/src/window.c
+++ b/src/window.c
@@ -4859,6 +4859,7 @@
return wp == aucmd_win || bt_popup(wp->w_buffer);
}
+#if defined(FEAT_TEXT_PROP) || defined(PROTO)
/*
* Free a popup window. This does not take the window out of the window list
* and assumes there is only one toplevel frame, no split.
@@ -4867,11 +4868,14 @@
win_free_popup(win_T *win)
{
win_close_buffer(win, TRUE, FALSE);
+# if defined(FEAT_TIMERS)
if (win->w_popup_timer != NULL)
stop_timer(win->w_popup_timer);
+# endif
vim_free(win->w_frame);
win_free(win, NULL);
}
+#endif
/*
* Append window "wp" in the window list after window "after".