Fix for lint

This commit is contained in:
George Zhao
2018-01-17 21:25:46 +08:00
parent e76c6e2ee8
commit 82adba0f2f
2 changed files with 3 additions and 6 deletions

View File

@@ -50,11 +50,6 @@
#include "nvim/os/shell.h"
#include "nvim/eval/encode.h"
/*
* Fix warning on mingw32 and mingw64
* make isnan as _isnan
* fpclassify is used by isinf, so redefine it
*/
#ifdef __MINGW32__
# undef fpclassify
# define fpclassify __fpclassify

View File

@@ -49,7 +49,9 @@ void term_input_init(TermInput *input, Loop *loop)
#ifdef WIN32
uv_tty_init(&loop->uv, &input->tty_in, 0, 1);
uv_tty_set_mode(&input->tty_in, UV_TTY_MODE_RAW);
rstream_init_stream(&input->read_stream, (uv_stream_t *)&input->tty_in, 0xfff);
rstream_init_stream(&input->read_stream,
(uv_stream_t *)&input->tty_in,
0xfff);
#else
rstream_init_fd(loop, &input->read_stream, input->in_fd, 0xfff);
#endif