From 4fa9380f0d40a55a8f3df32a46d60102483d9057 Mon Sep 17 00:00:00 2001 From: Martin Ridgers Date: Fri, 29 Oct 2021 15:48:22 +0200 Subject: If-def'd Basic and SandboxedJob classes temporarily --- zenserver/testing/launch.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'zenserver/testing/launch.cpp') diff --git a/zenserver/testing/launch.cpp b/zenserver/testing/launch.cpp index 4b0a76246..569bf99e0 100644 --- a/zenserver/testing/launch.cpp +++ b/zenserver/testing/launch.cpp @@ -31,6 +31,7 @@ using namespace std::literals; namespace zen { +#if ZEN_PLATFORM_WINDOWS struct BasicJob { public: @@ -130,7 +131,19 @@ BasicJob::ExitCode() return gsl::narrow_cast(Ec); } +#else + struct BasicJob + { + void SetWorkingDirectory(...); + void SpawnJob(...); + void Wait(); + int32_t ExitCode(); + }; +#endif // ZEN_PLATFORM_WINDOWS + +//////////////////////////////////////////////////////////////////////////////// +#if ZEN_PLATFORM_WINDOWS struct SandboxedJob { SandboxedJob() = default; @@ -320,6 +333,10 @@ SandboxedJob::SpawnJob(std::filesystem::path ExePath) return true; } +#else +#endif // ZEN_PLATFORM_WINDOWS + +//////////////////////////////////////////////////////////////////////////////// HttpLaunchService::HttpLaunchService(CasStore& Store, const std::filesystem::path& SandboxBaseDir) : m_Log(logging::Get("exec")) -- cgit v1.2.3