diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2014-12-13 13:29:14 -0500 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2014-12-13 13:29:14 -0500 |
commit | 0ba6cb2f5cfe49ee1ee66c6246a77947af74ae5e (patch) | |
tree | a089061fe1212960b868408b9699e5b02f792880 /src/nvim/main.c | |
parent | 677a3f42c0f0821ddeed34728c8708fa4d0742cc (diff) | |
parent | 975f4ec3505b8bc2321ab2cb554aff40f2db614b (diff) | |
download | rneovim-0ba6cb2f5cfe49ee1ee66c6246a77947af74ae5e.tar.gz rneovim-0ba6cb2f5cfe49ee1ee66c6246a77947af74ae5e.tar.bz2 rneovim-0ba6cb2f5cfe49ee1ee66c6246a77947af74ae5e.zip |
Merge pull request #1586 from oakes/master
libnvim: Allow building as a static library
Diffstat (limited to 'src/nvim/main.c')
-rw-r--r-- | src/nvim/main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/main.c b/src/nvim/main.c index c806431872..8c6df6a212 100644 --- a/src/nvim/main.c +++ b/src/nvim/main.c @@ -194,7 +194,11 @@ void early_init(void) } #ifndef NO_VIM_MAIN /* skip this for unittests */ +#ifdef MAKE_LIB +int nvim_main(int argc, char **argv) +#else int main(int argc, char **argv) +#endif { char_u *fname = NULL; /* file name from command line */ mparm_T params; /* various parameters passed between |