patch 8.0.0540: building unit tests fails
Problem: Building unit tests fails.
Solution: Move params outside of #ifdef.
diff --git a/src/main.c b/src/main.c
index e3db0b2..6d59b09 100644
--- a/src/main.c
+++ b/src/main.c
@@ -89,15 +89,16 @@
};
#ifndef PROTO /* don't want a prototype for main() */
+
+/* Various parameters passed between main() and other functions. */
+static mparm_T params;
+
#ifndef NO_VIM_MAIN /* skip this for unittests */
static char_u *start_dir = NULL; /* current working dir on startup */
static int has_dash_c_arg = FALSE;
-/* Various parameters passed between main() and other functions. */
-static mparm_T params;
-
int
# ifdef VIMDLL
_export