Permalink
Browse files

patch 8.0.1132: #if condition is not portable

Problem:    #if condition is not portable.
Solution:   Add defined(). (Zuloloxi, closes #2136)
  • Loading branch information...
brammool committed Sep 21, 2017
1 parent b00fdf6 commit fc7649f8b82efbb4c7066567dd69192d97a2749f
Showing with 4 additions and 1 deletion.
  1. +2 −1 src/libvterm/src/vterm.c
  2. +2 −0 src/version.c
View
@@ -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
@@ -761,6 +761,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1132,
/**/
1131,
/**/

0 comments on commit fc7649f

Please sign in to comment.