mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
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:
parent
5066128d48
commit
2753be6e4d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user