0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

patch 8.0.1132: #if condition is not portable

Problem:    #if condition is not portable.
Solution:   Add defined(). (Zuloloxi, closes #2136)
This commit is contained in:
Bram Moolenaar 2017-09-21 22:46:47 +02:00
parent b00fdf6eed
commit fc7649f8b8
2 changed files with 4 additions and 1 deletions

View File

@ -130,7 +130,8 @@ static int outbuffer_is_full(VTerm *vt)
return vt->outbuffer_cur >= vt->outbuffer_len - 1;
}
#if _XOPEN_SOURCE >= 500 || _ISOC99_SOURCE || _BSD_SOURCE
#if (defined(_XOPEN_SOURCE) && _XOPEN_SOURCE >= 500) \
|| defined(_ISOC99_SOURCE) || defined(_BSD_SOURCE)
# undef VSNPRINTF
# define VSNPRINTF vsnprintf
#else

View File

@ -761,6 +761,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1132,
/**/
1131,
/**/