On Tue, Nov 17, 2009 at 11:24:46AM -0400, Ajit Thakkar wrote: > On Tue, Nov 17, 2009 at 7:09 AM, Bram Moolenaar <[email protected]> wrote: > > Patch 7.2.294 > > compilation error on windows > > fileio.c: In function 'vim_settempdir': > fileio.c:7012: error: 'vim_tempdir' undeclared (first use in this function)
Attached patch should fix it. -- James GPG Key: 1024D/61326D40 2003-09-02 James Vega <[email protected]>
diff --git a/src/fileio.c b/src/fileio.c
index b0b341a..805ff87 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -146,7 +146,9 @@ static int get_mac_fio_flags __ARGS((char_u *ptr));
# endif
#endif
static int move_lines __ARGS((buf_T *frombuf, buf_T *tobuf));
+#ifdef TEMPDIRNAMES
static void vim_settempdir __ARGS((char_u *tempdir));
+#endif
#ifdef FEAT_AUTOCMD
static char *e_auchangedbuf = N_("E812: Autocommands changed buffer or buffer name");
#endif
@@ -6995,6 +6997,7 @@ vim_deltempdir()
}
#endif
+#ifdef TEMPDIRNAMES
/*
* Directory "tempdir" was created. Expand this name to a full path and put
* it in "vim_tempdir". This avoids that using ":cd" would confuse us.
@@ -7021,6 +7024,7 @@ vim_settempdir(tempdir)
vim_free(buf);
}
}
+#endif
/*
* vim_tempname(): Return a unique name that can be used for a temp file.
signature.asc
Description: Digital signature
