Allow building as a static -fPIC library

This commit is contained in:
oakes
2014-11-30 21:22:46 -05:00
parent d5741e5124
commit dd9e5a3d7a
4 changed files with 18 additions and 1 deletions

View File

@@ -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