diff --git a/zsnes/src/win/safelib.c b/zsnes/src/win/safelib.c index 92a27892..e348fbb6 100644 --- a/zsnes/src/win/safelib.c +++ b/zsnes/src/win/safelib.c @@ -16,11 +16,11 @@ #define fdopen _fdopen #ifndef STDIN_FILENO -#define STDIN_FILENO fileno(stdin) +#define STDIN_FILENO 0 #endif #ifndef STDOUT_FILENO -#define STDOUT_FILENO fileno(stdout) +#define STDOUT_FILENO 1 #endif //Introducing a popen which doesn't return until it knows for sure of program launched or couldn't open -Nach