diff options
| author | Stefan Boberg <[email protected]> | 2026-03-24 09:40:20 +0100 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2026-03-24 09:40:20 +0100 |
| commit | 87fa8e2cccab324c90e08a07ea030ec9eaae4b58 (patch) | |
| tree | 103211be3984b06b24ef648444b02c5a87a0eccd /src/zencore/process.cpp | |
| parent | Merge branch 'main' into sb/proc1000 (diff) | |
| download | zen-87fa8e2cccab324c90e08a07ea030ec9eaae4b58.tar.xz zen-87fa8e2cccab324c90e08a07ea030ec9eaae4b58.zip | |
Guard ProcessHandle(void*) and Initialize(void*) with ZEN_PLATFORM_WINDOWS
These overloads are Windows-only but were missing the preprocessor guard,
causing a linker error on Linux.
Diffstat (limited to 'src/zencore/process.cpp')
| -rw-r--r-- | src/zencore/process.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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) |