0
0
mirror of https://github.com/vim/vim.git synced 2025-10-18 07:54:29 -04:00

patch 9.0.1341: build error with mzscheme but without GUI

Problem:    Build error with mzscheme but without GUI.
Solution:   Adjust #ifdefs. (Ken Takata, closes #12042)  Also fix function
            argument.
This commit is contained in:
K.Takata
2023-02-22 13:14:36 +00:00
committed by Bram Moolenaar
parent 666cb9c530
commit 4ee083e7f9
3 changed files with 8 additions and 4 deletions

View File

@@ -886,19 +886,21 @@ remove_timer(void)
timer_id = 0;
}
#endif // MZSCHEME_GUI_THREADS
char *
did_set_mzquantum(void)
did_set_mzquantum(optset_T *args UNUSED)
{
#if defined(MZSCHEME_GUI_THREADS)
// reset timer
if (timer_id != 0)
remove_timer();
if (mz_threads_allow && p_mzq > 0 && gui.in_use)
setup_timer();
#endif
return NULL;
}
#endif // MZSCHEME_GUI_THREADS
static void
notify_multithread(int on)
{