diff options
| author | ZyX <kp-pav@yandex.ru> | 2016-11-05 01:03:44 +0300 |
|---|---|---|
| committer | ZyX <kp-pav@yandex.ru> | 2017-03-29 10:08:42 +0300 |
| commit | 4bcee963471abd939bb9edd1709418e30be7290f (patch) | |
| tree | ed4d8ef5d4526b538a2f6113c3f0fce28c94c2fe /src/nvim/os | |
| parent | 9ed9af7e11e3a707f65abfeb1d02b029e39241ea (diff) | |
| download | rneovim-4bcee963471abd939bb9edd1709418e30be7290f.tar.gz rneovim-4bcee963471abd939bb9edd1709418e30be7290f.tar.bz2 rneovim-4bcee963471abd939bb9edd1709418e30be7290f.zip | |
*: Fix some Windows-specific warnings
Also fixed an error in path_fnamecmp().
Diffstat (limited to 'src/nvim/os')
| -rw-r--r-- | src/nvim/os/env.c | 1 | ||||
| -rw-r--r-- | src/nvim/os/pty_process_win.h | 5 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/nvim/os/env.c b/src/nvim/os/env.c index a73d753e46..ae69462055 100644 --- a/src/nvim/os/env.c +++ b/src/nvim/os/env.c @@ -18,6 +18,7 @@ #include "nvim/eval.h" #include "nvim/ex_getln.h" #include "nvim/version.h" +#include "nvim/fileio.h" #ifdef WIN32 #include "nvim/mbyte.h" // for utf8_to_utf16, utf16_to_utf8 diff --git a/src/nvim/os/pty_process_win.h b/src/nvim/os/pty_process_win.h index 20cc589925..8e2b37a1c1 100644 --- a/src/nvim/os/pty_process_win.h +++ b/src/nvim/os/pty_process_win.h @@ -12,8 +12,9 @@ typedef struct pty_process { #define pty_process_spawn(job) libuv_process_spawn((LibuvProcess *)job) #define pty_process_close(job) libuv_process_close((LibuvProcess *)job) #define pty_process_close_master(job) libuv_process_close((LibuvProcess *)job) -#define pty_process_resize(job, width, height) -#define pty_process_teardown(loop) +#define pty_process_resize(job, width, height) ( \ + (void)job, (void)width, (void)height, 0) +#define pty_process_teardown(loop) ((void)loop, 0) static inline PtyProcess pty_process_init(Loop *loop, void *data) { |