Fixed safe_popen for MSVC.

This commit is contained in:
jbo_85
2006-03-11 23:15:54 +00:00
parent 3061122d8f
commit ae20e73018

View File

@@ -16,11 +16,11 @@
#define fdopen _fdopen #define fdopen _fdopen
#ifndef STDIN_FILENO #ifndef STDIN_FILENO
#define STDIN_FILENO fileno(stdin) #define STDIN_FILENO 0
#endif #endif
#ifndef STDOUT_FILENO #ifndef STDOUT_FILENO
#define STDOUT_FILENO fileno(stdout) #define STDOUT_FILENO 1
#endif #endif
//Introducing a popen which doesn't return until it knows for sure of program launched or couldn't open -Nach //Introducing a popen which doesn't return until it knows for sure of program launched or couldn't open -Nach