mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix SystemProcess::isActive macos warning
This commit is contained in:
parent
c2a77509f7
commit
9de8331692
1 changed files with 2 additions and 2 deletions
|
|
@ -267,12 +267,12 @@ public:
|
|||
}
|
||||
|
||||
bool isActive() const override {
|
||||
#ifdef __linux__
|
||||
#ifndef _WIN32
|
||||
if (kill(pid, 0) == 0) {
|
||||
return true;
|
||||
}
|
||||
return errno != ESRCH;
|
||||
#elif defined(_WIN32)
|
||||
#else
|
||||
if (processHandle == nullptr) {
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue