diff options
author | Samuel Kolb <skolb@lindenlab.com> | 2009-12-16 12:04:38 -0800 |
---|---|---|
committer | Samuel Kolb <skolb@lindenlab.com> | 2009-12-16 12:04:38 -0800 |
commit | bedde40e9475f3772807b6fc48c3039d5993f578 (patch) | |
tree | ae615503b4c917667a5a0b752dd0a6eca2927e9b /indra/llvfs | |
parent | d7533a2c0646826088d5c1f58c84604c0607b8aa (diff) | |
parent | 0c0cb6fd79d12016b32bb74ce0e9d2c656143902 (diff) |
local merge
Diffstat (limited to 'indra/llvfs')
-rwxr-xr-x | indra/llvfs/llpidlock.cpp | 9 | ||||
-rwxr-xr-x | indra/llvfs/llpidlock.h | 12 |
2 files changed, 11 insertions, 10 deletions
diff --git a/indra/llvfs/llpidlock.cpp b/indra/llvfs/llpidlock.cpp index 315baa001d..95e3692e10 100755 --- a/indra/llvfs/llpidlock.cpp +++ b/indra/llvfs/llpidlock.cpp @@ -41,6 +41,15 @@ #include "llframetimer.h" #if LL_WINDOWS //For windows platform. + +#include <windows.h> + +namespace { + inline DWORD getpid() { + return GetCurrentProcessId(); + } +} + bool isProcessAlive(U32 pid) { return (bool) GetProcessVersion((DWORD)pid); diff --git a/indra/llvfs/llpidlock.h b/indra/llvfs/llpidlock.h index 42aee4dc4f..496e99cf5a 100755 --- a/indra/llvfs/llpidlock.h +++ b/indra/llvfs/llpidlock.h @@ -37,17 +37,9 @@ class LLSD; class LLFrameTimer; -#if LL_WINDOWS //For windows platform. - -#include <windows.h> - -#define getpid GetCurrentProcessId - -#else //Everyone Else - +#if !LL_WINDOWS //For non-windows platforms. #include <signal.h> - -#endif //Everyone else. +#endif namespace LLPidLock { |