From e8dd2c986c4f93c58e74311ab08b614eb6270c70 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Tue, 21 Apr 2020 10:22:45 +0200 Subject: Test on actual libuv version number, not on existence of symbol. uv_stream_get_write_queue_size isn't a define, it's a function. It seems like this would always be shadowing the actual function name. --- src/nvim/event/stream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/nvim/event/stream.c b/src/nvim/event/stream.c index a5f8f83d65..0e87f7c6c1 100644 --- a/src/nvim/event/stream.c +++ b/src/nvim/event/stream.c @@ -17,7 +17,7 @@ #endif // For compatbility with libuv < 1.19.0 (tested on 1.18.0) -#ifndef uv_stream_get_write_queue_size +#if UV_VERSION_MINOR < 19 #define uv_stream_get_write_queue_size(stream) stream->write_queue_size #endif -- cgit