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.
This commit is contained in:
Matěj Cepl
2020-04-21 10:22:45 +02:00
parent 770a0ac2df
commit e8dd2c986c

View File

@@ -17,7 +17,7 @@
#endif #endif
// For compatbility with libuv < 1.19.0 (tested on 1.18.0) // 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 #define uv_stream_get_write_queue_size(stream) stream->write_queue_size
#endif #endif