Skip to content

Commit fc7649f

Browse files
committed
patch 8.0.1132: #if condition is not portable
Problem: #if condition is not portable. Solution: Add defined(). (Zuloloxi, closes #2136)
1 parent b00fdf6 commit fc7649f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/libvterm/src/vterm.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ static int outbuffer_is_full(VTerm *vt)
130130
return vt->outbuffer_cur >= vt->outbuffer_len - 1;
131131
}
132132

133-
#if _XOPEN_SOURCE >= 500 || _ISOC99_SOURCE || _BSD_SOURCE
133+
#if (defined(_XOPEN_SOURCE) && _XOPEN_SOURCE >= 500) \
134+
|| defined(_ISOC99_SOURCE) || defined(_BSD_SOURCE)
134135
# undef VSNPRINTF
135136
# define VSNPRINTF vsnprintf
136137
#else

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -761,6 +761,8 @@ static char *(features[]) =
761761

762762
static int included_patches[] =
763763
{ /* Add new patch number below this line */
764+
/**/
765+
1132,
764766
/**/
765767
1131,
766768
/**/

0 commit comments

Comments
 (0)