diff options
author | K.Takata <kentkt@csc.jp> | 2023-02-22 13:14:36 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2023-02-22 13:14:36 +0000 |
commit | 4ee083e7f9e973a9f5939eb0cd477aa52fbab51c (patch) | |
tree | a0a08618211bdbb66ab48d23c142c7439675250b /src | |
parent | 666cb9c5303753fef7039e9a9e5fbe9a44299607 (diff) |
patch 9.0.1341: build error with mzscheme but without GUIv9.0.1341
Problem: Build error with mzscheme but without GUI.
Solution: Adjust #ifdefs. (Ken Takata, closes #12042) Also fix function
argument.
Diffstat (limited to 'src')
-rw-r--r-- | src/if_mzsch.c | 8 | ||||
-rw-r--r-- | src/proto/if_mzsch.pro | 2 | ||||
-rw-r--r-- | src/version.c | 2 |
3 files changed, 8 insertions, 4 deletions
diff --git a/src/if_mzsch.c b/src/if_mzsch.c index 39d1530fe5..e4ebf29f49 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 00bbf3c058..26ffa77c87 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 c541e6f7ff..56d02b3e4b 100644 --- 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, |