#include <fcntl.h>
#include <errno.h>
-#ifndef WIN32
+#ifndef _WIN32
#include <sys/wait.h>
#else
#include <windows.h>
#include <psapi.h>
+#include <time.h>
+#include <io.h>
+#include <process.h>
+
+#if _MSC_VER
+#define S_IRUSR _S_IREAD
+#define S_IWUSR _S_IWRITE
+#endif
#endif
/* Parsing. */
exit( status );
}
-#ifndef WIN32
+#ifndef _WIN32
/* If any forward slash is found in argv0 then it is assumed that the path is
* explicit and the path to the backend executable should be derived from
frontendArgs.append( inputFileName );
frontendArgs.append( 0 );
-#ifndef WIN32
+#ifndef _WIN32
char **pathChecks = makePathChecksUnix( argv0, progName );
forkAndExec( progName, pathChecks, frontendArgs, intermed );
#else
backendArgs.append( intermed );
backendArgs.append( 0 );
-#ifndef WIN32
+#ifndef _WIN32
char **pathChecks = makePathChecksUnix( argv0, progName );
forkAndExec( progName, pathChecks, backendArgs, intermed );
#else