diff options
author | brad kittenbrink <brad@lindenlab.com> | 2009-12-14 11:07:29 -0800 |
---|---|---|
committer | brad kittenbrink <brad@lindenlab.com> | 2009-12-14 11:07:29 -0800 |
commit | cb9b874b17aa4b284a622961e1e09ef42d8cd284 (patch) | |
tree | 8f88ba469b3016ccec982d881040a06325b762a5 /indra/llvfs | |
parent | a9e409c7071ba74f01158aa7b876a1ad60161fc4 (diff) | |
parent | 7c69928ff8892f0cb4a3a6ad155106ebef7e1f8a (diff) |
Merge of my old precompiled headers dependency cleanup with tip of viewer-2-0.
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 { |