changeset 32019:274e1b3fbc2a v9.0.1341

patch 9.0.1341: build error with mzscheme but without GUI Commit: https://github.com/vim/vim/commit/4ee083e7f9e973a9f5939eb0cd477aa52fbab51c Author: K.Takata <kentkt@csc.jp> 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.
author Bram Moolenaar <Bram@vim.org>
date Wed, 22 Feb 2023 14:15:02 +0100
parents 125e0ccf3725
children c9428435dafe
files src/if_mzsch.c src/proto/if_mzsch.pro src/version.c
diffstat 3 files changed, 8 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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)
 {
--- 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);
--- 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,