Windows: Define ssize_t and SSIZE_MAX. #3228

Remove R_OK, W_OK defines because os/os.h includes <uv.h> which includes
uv-win.h which defines R_OK and W_OK.
This commit is contained in:
Seth Jackson 2015-08-24 20:37:42 -04:00 committed by Justin M. Keyes
parent 5066128d48
commit 2753be6e4d

View File

@ -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