diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2015-12-29 12:59:55 -0500 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2015-12-29 12:59:55 -0500 |
commit | 541ba61ac9369e59996ba04fe6438642f3a263c7 (patch) | |
tree | ff99964a1545e4be58cc61feb17d6abd355a2fdf /src | |
parent | 6ee58e67cbefb6538a20bae5fbe381c21bf99569 (diff) | |
parent | eb53ec5ba2a186ff0fc45d6b8f96a550ed36ce25 (diff) | |
download | rneovim-541ba61ac9369e59996ba04fe6438642f3a263c7.tar.gz rneovim-541ba61ac9369e59996ba04fe6438642f3a263c7.tar.bz2 rneovim-541ba61ac9369e59996ba04fe6438642f3a263c7.zip |
Merge pull request #3874 from sethjackson/win-defs
MSVC: Define STDOUT_FILENO and STDERR_FILENO
Diffstat (limited to 'src')
-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 |