summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-04-02 18:19:53 +0200
committerBram Moolenaar <Bram@vim.org>2017-04-02 18:19:53 +0200
commita604429529ce3d3c97309c7cf6bba8b699f6bfb5 (patch)
tree46f3e0bf543047e0cfc8877e1591fbade73ba548 /src/main.c
parent08f88b139d2f93661ed2b17214ee6b308b4edb5b (diff)
downloadvim-git-a604429529ce3d3c97309c7cf6bba8b699f6bfb5.tar.gz
patch 8.0.0540: building unit tests failsv8.0.0540
Problem: Building unit tests fails. Solution: Move params outside of #ifdef.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index e3db0b2a9..6d59b09ba 100644
--- a/src/main.c
+++ b/src/main.c
@@ -89,15 +89,16 @@ static char *(main_errors[]) =
};
#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