summaryrefslogtreecommitdiff
path: root/src/libvterm
diff options
context:
space:
mode:
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