From: Bram Moolenaar Date: Thu, 21 Sep 2017 20:46:47 +0000 (+0200) Subject: patch 8.0.1132: #if condition is not portable X-Git-Tag: v8.0.1132 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fc7649f8b82efbb4c7066567dd69192d97a2749f;p=vim patch 8.0.1132: #if condition is not portable Problem: #if condition is not portable. Solution: Add defined(). (Zuloloxi, closes #2136) --- diff --git a/src/libvterm/src/vterm.c b/src/libvterm/src/vterm.c index b2a7240ff..1789fb356 100644 --- a/src/libvterm/src/vterm.c +++ b/src/libvterm/src/vterm.c @@ -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 diff --git a/src/version.c b/src/version.c index 1ff5b3ef4..b90665e51 100644 --- a/src/version.c +++ b/src/version.c @@ -761,6 +761,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1132, /**/ 1131, /**/