patch 8.0.1319: can't build GUI on MS-Windows
Problem: Can't build GUI on MS-Windows.
Solution: Don't define the balloon_split() function in a GUI-only build.
diff --git a/src/evalfunc.c b/src/evalfunc.c
index 77a4fc2..8d288e0 100644
--- a/src/evalfunc.c
+++ b/src/evalfunc.c
@@ -61,7 +61,9 @@
#endif
#ifdef FEAT_BEVAL
static void f_balloon_show(typval_T *argvars, typval_T *rettv);
+# if defined(FEAT_BEVAL_TERM)
static void f_balloon_split(typval_T *argvars, typval_T *rettv);
+# endif
#endif
static void f_browse(typval_T *argvars, typval_T *rettv);
static void f_browsedir(typval_T *argvars, typval_T *rettv);
@@ -495,7 +497,9 @@
#endif
#ifdef FEAT_BEVAL
{"balloon_show", 1, 1, f_balloon_show},
+# if defined(FEAT_BEVAL_TERM)
{"balloon_split", 1, 1, f_balloon_split},
+# endif
#endif
{"browse", 4, 4, f_browse},
{"browsedir", 2, 2, f_browsedir},
@@ -1424,6 +1428,7 @@
}
}
+# if defined(FEAT_BEVAL_TERM)
static void
f_balloon_split(typval_T *argvars, typval_T *rettv UNUSED)
{
@@ -1444,6 +1449,7 @@
}
}
}
+# endif
#endif
/*