diff options
-rw-r--r-- | src/nvim/os/win_defs.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/nvim/os/win_defs.h b/src/nvim/os/win_defs.h index a51898c9e7..025833060a 100644 --- a/src/nvim/os/win_defs.h +++ b/src/nvim/os/win_defs.h @@ -21,12 +21,14 @@ // - SYS_VIMRC_FILE // - SPECIAL_WILDCHAR -// _access(): https://msdn.microsoft.com/en-us/library/1w06ktdy.aspx -#ifndef R_OK -# define R_OK 4 -#endif -#ifndef W_OK -# define W_OK 2 +typedef SSIZE_T ssize_t; + +#ifndef SSIZE_MAX +# ifdef _WIN64 +# define SSIZE_MAX _I64_MAX +# else +# define SSIZE_MAX LONG_MAX +# endif #endif #endif // NVIM_OS_WIN_DEFS_H |