Mercurial > vim
comparison src/libvterm/src/vterm.c @ 12507:47da4dcc897e v8.0.1132
patch 8.0.1132: #if condition is not portable
commit https://github.com/vim/vim/commit/fc7649f8b82efbb4c7066567dd69192d97a2749f
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Sep 21 22:46:47 2017 +0200
patch 8.0.1132: #if condition is not portable
Problem: #if condition is not portable.
Solution: Add defined(). (Zuloloxi, closes https://github.com/vim/vim/issues/2136)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 21 Sep 2017 23:00:03 +0200 |
parents | ca4931a20f8c |
children | 5e47c4bdf3a6 |
comparison
equal
deleted
inserted
replaced
12506:d4698612d334 | 12507:47da4dcc897e |
---|---|
128 static int outbuffer_is_full(VTerm *vt) | 128 static int outbuffer_is_full(VTerm *vt) |
129 { | 129 { |
130 return vt->outbuffer_cur >= vt->outbuffer_len - 1; | 130 return vt->outbuffer_cur >= vt->outbuffer_len - 1; |
131 } | 131 } |
132 | 132 |
133 #if _XOPEN_SOURCE >= 500 || _ISOC99_SOURCE || _BSD_SOURCE | 133 #if (defined(_XOPEN_SOURCE) && _XOPEN_SOURCE >= 500) \ |
134 || defined(_ISOC99_SOURCE) || defined(_BSD_SOURCE) | |
134 # undef VSNPRINTF | 135 # undef VSNPRINTF |
135 # define VSNPRINTF vsnprintf | 136 # define VSNPRINTF vsnprintf |
136 #else | 137 #else |
137 # ifdef VSNPRINTF | 138 # ifdef VSNPRINTF |
138 /* Use a provided vsnprintf() function. */ | 139 /* Use a provided vsnprintf() function. */ |