summaryrefslogtreecommitdiff
path: root/src/libvterm
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-09-21 22:46:47 +0200
committerBram Moolenaar <Bram@vim.org>2017-09-21 22:46:47 +0200
commitfc7649f8b82efbb4c7066567dd69192d97a2749f (patch)
treeff40e63e463d0110f269f356a90b6a1dd94b5fb7 /src/libvterm
parentb00fdf6eed5fec589a86655249a851c2d9ba3bb8 (diff)
downloadvim-git-fc7649f8b82efbb4c7066567dd69192d97a2749f.tar.gz
patch 8.0.1132: #if condition is not portablev8.0.1132
Problem: #if condition is not portable. Solution: Add defined(). (Zuloloxi, closes #2136)
Diffstat (limited to 'src/libvterm')
-rw-r--r--src/libvterm/src/vterm.c3
1 files changed, 2 insertions, 1 deletions
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