1
0
mirror of https://github.com/alliedmodders/metamod-source.git synced 2025-01-19 08:52:34 +01:00

Moved g_BadReadCalled and g_BadReadJmpBuf to sourcehook.cpp to prevent linking errors when including sourcehook_impl.h

--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%4094
This commit is contained in:
Scott Ehlert 2005-07-09 20:49:25 +00:00
parent 81ae7cabf5
commit 151efb135a
2 changed files with 3 additions and 3 deletions

View File

@ -589,6 +589,9 @@ namespace SourceHook
}
#ifdef __linux__
bool g_BadReadCalled;
jmp_buf g_BadReadJmpBuf;
// Windows has an implementation for this already, but Linux does not :(
bool IsBadReadPtr(const void *ptr, size_t len)
{

View File

@ -211,9 +211,6 @@ namespace SourceHook
*/
bool IsBadReadPtr(const void *ptr, size_t len);
void BadReadHandler(int sig);
bool g_BadReadCalled;
jmp_buf g_BadReadJmpBuf;
#endif
}