From 4ee083e7f9e973a9f5939eb0cd477aa52fbab51c Mon Sep 17 00:00:00 2001 From: "K.Takata" Date: Wed, 22 Feb 2023 13:14:36 +0000 Subject: [PATCH] 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. --- src/if_mzsch.c | 8 +++++--- src/proto/if_mzsch.pro | 2 +- src/version.c | 2 ++ 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/if_mzsch.c b/src/if_mzsch.c index 39d1530fe..e4ebf29f4 100644 --- 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 index 00bbf3c05..26ffa77c8 100644 --- 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 index c541e6f7f..56d02b3e4 100644 --- a/src/version.c +++ b/src/version.c @@ -695,6 +695,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1341, /**/ 1340, /**/ -- 2.40.0