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 // - SYS_VIMRC_FILE
// - SPECIAL_WILDCHAR // - SPECIAL_WILDCHAR
// _access(): https://msdn.microsoft.com/en-us/library/1w06ktdy.aspx typedef SSIZE_T ssize_t;
#ifndef R_OK
# define R_OK 4 #ifndef SSIZE_MAX
#endif # ifdef _WIN64
#ifndef W_OK # define SSIZE_MAX _I64_MAX
# define W_OK 2 # else
# define SSIZE_MAX LONG_MAX
# endif
#endif #endif
#endif // NVIM_OS_WIN_DEFS_H #endif // NVIM_OS_WIN_DEFS_H