mirror of
https://github.com/vim/vim.git
synced 2025-08-23 19:34:27 -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:
parent
b00fdf6eed
commit
fc7649f8b8
@ -130,7 +130,8 @@ static int outbuffer_is_full(VTerm *vt)
|
|||||||
return vt->outbuffer_cur >= vt->outbuffer_len - 1;
|
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
|
# undef VSNPRINTF
|
||||||
# define VSNPRINTF vsnprintf
|
# define VSNPRINTF vsnprintf
|
||||||
#else
|
#else
|
||||||
|
@ -761,6 +761,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1132,
|
||||||
/**/
|
/**/
|
||||||
1131,
|
1131,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user