From eb53ec5ba2a186ff0fc45d6b8f96a550ed36ce25 Mon Sep 17 00:00:00 2001 From: Rui Abreu Ferreira Date: Mon, 21 Dec 2015 00:01:16 -0500 Subject: [PATCH] MSVC: Define STDOUT_FILENO and STDERR_FILENO. --- src/nvim/os/win_defs.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/nvim/os/win_defs.h b/src/nvim/os/win_defs.h index aad9672ba7..9f9e5e277c 100644 --- a/src/nvim/os/win_defs.h +++ b/src/nvim/os/win_defs.h @@ -3,6 +3,7 @@ #include #include +#include #define TEMP_DIR_NAMES {"$TMP", "$TEMP", "$USERPROFILE", ""} #define TEMP_FILE_PATH_MAXLEN _MAX_PATH @@ -18,6 +19,12 @@ # ifndef restrict # define restrict __restrict # endif +# ifndef STDOUT_FILENO +# define STDOUT_FILENO _fileno(stdout) +# endif +# ifndef STDERR_FILENO +# define STDERR_FILENO _fileno(stderr) +# endif # ifndef S_IXUSR # define S_IXUSR S_IEXEC # endif