MSVC: Define STDOUT_FILENO and STDERR_FILENO.

This commit is contained in:
Rui Abreu Ferreira 2015-12-21 00:01:16 -05:00 committed by Seth Jackson
parent 376b973a0a
commit eb53ec5ba2

View File

@ -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