diff --git a/src/Platform.h b/src/Platform.h index 3a2335b..ff14e9e 100644 --- a/src/Platform.h +++ b/src/Platform.h @@ -6,6 +6,7 @@ #ifdef WIN32 #define PLATFORM_WINDOWS + #include #endif #ifdef __APPLE__ diff --git a/src/ProcessUtils.cpp b/src/ProcessUtils.cpp index e2d84ae..e0a5fa4 100644 --- a/src/ProcessUtils.cpp +++ b/src/ProcessUtils.cpp @@ -43,6 +43,15 @@ int ProcessUtils::runSyncUnix(const std::string& executable, } #endif +#ifdef PLATFORM_WINDOWS +int ProcessUtils::runSyncWindows(const std::string& executable, + const std::list& args) +{ + // TODO - Implement me + return 0; +} +#endif + void ProcessUtils::runAsync(const std::string& executable, const std::list& args) { @@ -79,7 +88,7 @@ bool ProcessUtils::waitForProcess(long long pid) if (!(hProc = OpenProcess(SYNCHRONIZE, FALSE, static_cast(pid)))) { - LOG(Error,"Unable to get process handle for pid" + intToStr(pid) + "last error" + intToStr(GetLastError())); + LOG(Error,"Unable to get process handle for pid " + intToStr(pid) + " last error " + intToStr(GetLastError())); return false; } @@ -88,7 +97,7 @@ bool ProcessUtils::waitForProcess(long long pid) if (dwRet == WAIT_FAILED) { - debug_logger(m_debugLog) << "WaitForSingleObject failed with error" << GetLastError(); + LOG(Error,"WaitForSingleObject failed with error " + intToStr(GetLastError())); } return (dwRet == WAIT_OBJECT_0); diff --git a/src/ProcessUtils.h b/src/ProcessUtils.h index 6f88249..5df6dbb 100644 --- a/src/ProcessUtils.h +++ b/src/ProcessUtils.h @@ -33,5 +33,7 @@ class ProcessUtils const std::list& args); static int runSyncUnix(const std::string& executable, const std::list& args); + static int runSyncWindows(const std::string& executable, + const std::list& args); };