diff options
-rw-r--r-- | src/lib/evil/evil_fcntl.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/lib/evil/evil_fcntl.h b/src/lib/evil/evil_fcntl.h index 1930a18e7f..f988de5fe9 100644 --- a/src/lib/evil/evil_fcntl.h +++ b/src/lib/evil/evil_fcntl.h @@ -4,6 +4,19 @@ # include <sys/types.h> +#if _MSC_VER +# define _CRT_DECLARE_NONSTDC_NAMES 1 +# include <fcntl.h> +# undef _CRT_DECLARE_NONSTDC_NAMES +#endif + +/** + * @def O_ACCMODE + * O_ACCMODE is an AND mask to extract file access modes. + */ +#ifdef _MSC_VER +# define O_ACCMODE 3 +#endif /** * @def FD_CLOEXEC |