Fixed safe_popen for MSVC.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user