#include <timely/time_control.h>
#include <stdlib.h>
-#ifdef __UNIX__
+#ifndef _MSC_VER
#include <signal.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>
-#endif
-#ifdef __WIN32__
+#else
#include <process.h>
#include <shellapi.h>
#include <shlobj.h>
return __hidden_kids;
}
-#ifdef __WIN32__
+#ifdef _MSC_VER
bool launch_process::event_poll(MSG &message)
{
message.hwnd = 0;
//const int MAXIMUM_COMMAND_LINE = 32 * KILOBYTE;
// maximum command line that we'll deal with here.
-#ifdef __UNIX__
+#ifndef _MSC_VER
void launch_process::exiting_child_signal_handler(int sig_num)
{
FUNCDEF("exiting_child_signal_handler");
app_name.insert(0, "\"");
if (app_name[app_name.end()] != '"')
app_name += "\"";
-#ifdef __UNIX__
+#if defined(__UNIX__) || defined(__GNU_WINDOWS__)
// unix / linux implementation.
if (flag & RETURN_IMMEDIATELY) {
// they want to get back right away.
// assume they want to wait.
return system((app_name + " " + command_line).s());
}
-#elif defined(__WIN32__)
+#elif defined(_MSC_VER)
//checking on whether we have admin rights for the launch.
//if (IsUserAnAdmin()) {