]> granicus.if.org Git - vim/commitdiff
patch 8.2.0395: build fails with FEAT_EVAL but without FEAT_MENU v8.2.0395
authorBram Moolenaar <Bram@vim.org>
Mon, 16 Mar 2020 20:08:31 +0000 (21:08 +0100)
committerBram Moolenaar <Bram@vim.org>
Mon, 16 Mar 2020 20:08:31 +0000 (21:08 +0100)
Problem:    Build fails with FEAT_EVAL but without FEAT_MENU.
Solution:   Add #ifdef. (John Marriott)

src/evalfunc.c
src/version.c

index fdfdc0a06e9b9c1009aa5cbff9683c402da1f3d4..9a6187b20af237177d68daaafac73018bcb2f924 100644 (file)
@@ -646,7 +646,9 @@ static funcentry_T global_functions[] =
     {"matchstr",       2, 4, FEARG_1,    ret_string,   f_matchstr},
     {"matchstrpos",    2, 4, FEARG_1,    ret_list_any, f_matchstrpos},
     {"max",            1, 1, FEARG_1,    ret_any,      f_max},
+#ifdef FEAT_MENU
     {"menu_info",      1, 2, FEARG_1,    ret_dict_any, f_menu_info},
+#endif
     {"min",            1, 1, FEARG_1,    ret_any,      f_min},
     {"mkdir",          1, 3, FEARG_1,    ret_number,   f_mkdir},
     {"mode",           0, 1, FEARG_1,    ret_string,   f_mode},
index 717ca669e891d3db2fa25865ccf298a0d1454775..27aedd56cecf377a8a451881e658629763f61234 100644 (file)
@@ -738,6 +738,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    395,
 /**/
     394,
 /**/