Skip to content

Commit

Permalink
patch 8.0.1132: #if condition is not portable
Browse files Browse the repository at this point in the history
Problem:    #if condition is not portable.
Solution:   Add defined(). (Zuloloxi, closes #2136)
  • Loading branch information
brammool committed Sep 21, 2017
1 parent b00fdf6 commit fc7649f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libvterm/src/vterm.c
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -761,6 +761,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1132,
/**/
1131,
/**/
Expand Down

0 comments on commit fc7649f

Please sign in to comment.