diff options
author | Rui Abreu Ferreira <raf-ep@gmx.com> | 2015-12-21 00:01:16 -0500 |
---|---|---|
committer | Seth Jackson <sethjackson@gmail.com> | 2015-12-21 00:01:16 -0500 |
commit | eb53ec5ba2a186ff0fc45d6b8f96a550ed36ce25 (patch) | |
tree | cb31a342e1b7aff8d574f37099d99f4163c71341 | |
parent | 376b973a0ae77243acdc15d1c786ea1f40aeb8a4 (diff) | |
download | rneovim-eb53ec5ba2a186ff0fc45d6b8f96a550ed36ce25.tar.gz rneovim-eb53ec5ba2a186ff0fc45d6b8f96a550ed36ce25.tar.bz2 rneovim-eb53ec5ba2a186ff0fc45d6b8f96a550ed36ce25.zip |
MSVC: Define STDOUT_FILENO and STDERR_FILENO.
-rw-r--r-- | src/nvim/os/win_defs.h | 7 |
1 files changed, 7 insertions, 0 deletions
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 <windows.h> #include <sys/stat.h> +#include <stdio.h> #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 |