# HG changeset patch # User Bram Moolenaar # Date 1316015414 -7200 # Node ID 0ed06069aaf32dbb2aa3827b23280b0028954ce7 # Parent 76537068682d725d8955d97b9d9fc436b37f6a10 updated for version 7.3.312 Problem: Can't compile with tiny features. Solution: Add #ifdef around win_valid(). diff --git a/src/buffer.c b/src/buffer.c --- a/src/buffer.c +++ b/src/buffer.c @@ -416,7 +416,11 @@ close_buffer(win, buf, action) #endif buf_freeall(buf, (del_buf ? BFA_DEL : 0) + (wipe_buf ? BFA_WIPE : 0)); - if (win_valid(win) && win->w_buffer == buf) + if ( +#ifdef FEAT_WINDOWS + win_valid(win) && +#endif + win->w_buffer == buf) win->w_buffer = NULL; /* make sure we don't use the buffer now */ #ifdef FEAT_AUTOCMD diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -710,6 +710,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 312, +/**/ 311, /**/ 310,