# HG changeset patch # User Bram Moolenaar # Date 1677071702 -3600 # Node ID 274e1b3fbc2afc2e7e327e84209f629ee225e2b1 # Parent 125e0ccf37251f19dada8383d83ad49052d5356c patch 9.0.1341: build error with mzscheme but without GUI Commit: https://github.com/vim/vim/commit/4ee083e7f9e973a9f5939eb0cd477aa52fbab51c Author: K.Takata Date: Wed Feb 22 13:14:36 2023 +0000 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 https://github.com/vim/vim/issues/12042) Also fix function argument. diff --git a/src/if_mzsch.c b/src/if_mzsch.c --- a/src/if_mzsch.c +++ b/src/if_mzsch.c @@ -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) { diff --git a/src/proto/if_mzsch.pro b/src/proto/if_mzsch.pro --- a/src/proto/if_mzsch.pro +++ b/src/proto/if_mzsch.pro @@ -1,7 +1,7 @@ /* if_mzsch.c */ int mzscheme_enabled(int verbose); void mzvim_check_threads(void); -char *did_set_mzquantum(void); +char *did_set_mzquantum(optset_T *args); void mzscheme_end(void); int mzscheme_main(void); void mzscheme_buffer_free(buf_T *buf); diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -696,6 +696,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1341, +/**/ 1340, /**/ 1339,