forked from enlightenment/efl
evil: Add STDIO FILENO macros for compatibility with MSVC
This commit is contained in:
parent
191cb43c81
commit
9407a5fe76
|
@ -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
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue