aboutsummaryrefslogtreecommitdiff
path: root/src/zencore
diff options
context:
space:
mode:
Diffstat (limited to 'src/zencore')
-rw-r--r--src/zencore/include/zencore/process.h4
-rw-r--r--src/zencore/process.cpp2
2 files changed, 6 insertions, 0 deletions
diff --git a/src/zencore/include/zencore/process.h b/src/zencore/include/zencore/process.h
index 594d7fd76..15b21da85 100644
--- a/src/zencore/include/zencore/process.h
+++ b/src/zencore/include/zencore/process.h
@@ -36,7 +36,9 @@ public:
/// Construct from an existing native process handle. Takes ownership —
/// the caller must not close the handle afterwards. Windows only.
+#if ZEN_PLATFORM_WINDOWS
explicit ProcessHandle(void* NativeHandle);
+#endif
ProcessHandle(const ProcessHandle&) = delete;
ProcessHandle& operator=(const ProcessHandle&) = delete;
@@ -56,7 +58,9 @@ public:
/// Initialize from an existing native process handle. Takes ownership —
/// the caller must not close the handle afterwards. Windows only.
+#if ZEN_PLATFORM_WINDOWS
void Initialize(void* ProcessHandle);
+#endif
/// Returns true if the process is still alive.
/// On Windows, queries the exit code (STILL_ACTIVE check).
diff --git a/src/zencore/process.cpp b/src/zencore/process.cpp
index 038f43447..41503a0e5 100644
--- a/src/zencore/process.cpp
+++ b/src/zencore/process.cpp
@@ -282,10 +282,12 @@ ProcessHandle::ProcessHandle(int Pid)
Initialize(Pid);
}
+#if ZEN_PLATFORM_WINDOWS
ProcessHandle::ProcessHandle(void* NativeHandle)
{
Initialize(NativeHandle);
}
+#endif
ProcessHandle::ProcessHandle(ProcessHandle&& Other) noexcept
: m_ProcessHandle(Other.m_ProcessHandle)