#include "os/path.h"
#include "container/array.h"
-#ifdef WIN32
- #include <windows.h>
-#endif
-#if defined (__linux__) || defined (__APPLE__)
- #include <unistd.h>
-#endif
+#if defined (POSIX)
+
+#include <unistd.h>
-#if defined (__linux__) || defined (__APPLE__)
bool Q_Exec(const char *cmd, char *cmdline, const char *, bool)
{
char fullcmd[2048];
}
return true;
}
-#endif
-#ifdef WIN32
+#elif defined(WIN32)
+
+#include <windows.h>
+
// NOTE TTimo windows is VERY nitpicky about the syntax in CreateProcess
bool Q_Exec(const char *cmd, char *cmdline, const char *execdir, bool bCreateConsole)
{
return true;
return false;
}
+
#endif