evil: Add STDIO FILENO macros for compatibility with MSVC

This commit is contained in:
Felipe Magno de Almeida 2020-12-15 15:44:36 -03:00
parent 191cb43c81
commit 9407a5fe76
1 changed files with 5 additions and 0 deletions

View File

@ -16,6 +16,7 @@
#ifdef _MSC_VER
#include <stdio.h>
#include <io.h> // for read, write, access, close
#define execvp _ucrt_execvp // overriding execvp below
@ -29,6 +30,10 @@ EVIL_API int execvp(const char *file, char *const argv[]);
#define X_OK 0 /* execute permission, originally '1', just a bypass here*/
#define F_OK 0 /* Test for existence. */
# define STDIN_FILENO _fileno(stdin)
# define STDOUT_FILENO _fileno(stdout)
# define STDERR_FILENO _fileno(stderr)
#endif // _MSC_VER
/*