Rejoice! Windows now uses a safer popen() which returns 0 on program launch fail, and allows you to see stdout on initial usages.

This commit is contained in:
n-a-c-h
2006-03-08 01:46:06 +00:00
parent 832160f00f
commit 6573b3b18c
7 changed files with 258 additions and 154 deletions

View File

@@ -39,9 +39,8 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#ifdef __WIN32__
#include <direct.h>
#include <io.h>
#include "win/safelib.h"
#define ftruncate chsize
#define popen _popen
#define pclose _pclose
#else
#include <unistd.h>
#endif