]> granicus.if.org Git - vim/commitdiff
patch 8.1.1287: cannot build with +eval but without +mouse v8.1.1287
authorBram Moolenaar <Bram@vim.org>
Tue, 7 May 2019 14:28:13 +0000 (16:28 +0200)
committerBram Moolenaar <Bram@vim.org>
Tue, 7 May 2019 14:28:13 +0000 (16:28 +0200)
Problem:    Cannot build with +eval but without +mouse.
Solution:   Add #ifdefs around f_test_setmouse(). (John Marriott)

src/evalfunc.c
src/version.c

index a2be7b903b07daade63ef444a0d7943bca58b243..ba3db95c9fd6d54748b95412347068b2fec69edc 100644 (file)
@@ -456,7 +456,9 @@ static void f_test_null_string(typval_T *argvars, typval_T *rettv);
 #ifdef FEAT_GUI
 static void f_test_scrollbar(typval_T *argvars, typval_T *rettv);
 #endif
+#ifdef FEAT_MOUSE
 static void f_test_setmouse(typval_T *argvars, typval_T *rettv);
+#endif
 static void f_test_settime(typval_T *argvars, typval_T *rettv);
 #ifdef FEAT_FLOAT
 static void f_tan(typval_T *argvars, typval_T *rettv);
@@ -994,7 +996,9 @@ static struct fst
 #ifdef FEAT_GUI
     {"test_scrollbar", 3, 3, f_test_scrollbar},
 #endif
+#ifdef FEAT_MOUSE
     {"test_setmouse",  2, 2, f_test_setmouse},
+#endif
     {"test_settime",   1, 1, f_test_settime},
 #ifdef FEAT_TIMERS
     {"timer_info",     0, 1, f_timer_info},
@@ -14499,12 +14503,14 @@ f_test_scrollbar(typval_T *argvars, typval_T *rettv UNUSED)
 }
 #endif
 
+#ifdef FEAT_MOUSE
     static void
 f_test_setmouse(typval_T *argvars, typval_T *rettv UNUSED)
 {
     mouse_row = (time_t)tv_get_number(&argvars[0]) - 1;
     mouse_col = (time_t)tv_get_number(&argvars[1]) - 1;
 }
+#endif
 
     static void
 f_test_settime(typval_T *argvars, typval_T *rettv UNUSED)
index 098c723a6eda12fd4a9c79509374249b43122800..e2ca5b04a1220a61732d0650ed915f2110c8a114 100644 (file)
@@ -767,6 +767,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1287,
 /**/
     1286,
 /**/