From cffa17964e93ca36257ff3a4498195dae4dd5abd Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 18 Nov 2009 20:07:58 +0000 Subject: [PATCH] [7.2.303] Can't build on MS-Windows. Problem: Can't build on MS-Windows. Solution: Add #ifdef around vim_settempdir(). (James Vega) Patch 7.2.303 (after 7.2.294) --- src/fileio.c | 4 ++++ src/version.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/src/fileio.c b/src/fileio.c index b0b341a2..805ff873 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. diff --git a/src/version.c b/src/version.c index 63ab5161..248fac70 100644 --- a/src/version.c +++ b/src/version.c @@ -682,6 +682,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 303, +/**/ 302, /**/ 301, -- 2.11.4.GIT