From abea8e219596b340220284f8d32476bdb5cc1eb3 Mon Sep 17 00:00:00 2001 From: Matt Woodrow Date: Sat, 17 Jan 2009 13:17:55 +1300 Subject: [PATCH] Fixed bintools compile options --- extensions/bintools/msvc9/bintools.vcproj | 2 +- public/extensions/IBinTools.h | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/extensions/bintools/msvc9/bintools.vcproj b/extensions/bintools/msvc9/bintools.vcproj index 0ce5cd5b..f5fbada7 100644 --- a/extensions/bintools/msvc9/bintools.vcproj +++ b/extensions/bintools/msvc9/bintools.vcproj @@ -125,7 +125,7 @@ AdditionalOptions="/MP /D SE_EPISODEONE=2 /D SE_ORANGEBOX=3 /D SE_LEFT4DEAD=4" FavorSizeOrSpeed="1" AdditionalIncludeDirectories="..;..\sdk;..\..\..\public;..\..\..\public\jit;..\..\..\public\jit\x86;..\..\..\public\extensions;..\..\..\public\sourcepawn;"$(MMSOURCE17)\core";"$(MMSOURCE17)\core\sourcehook";"$(HL2SDKOB)\public";"$(HL2SDKOB)\public\tier0";"$(HL2SDKOB)\public\tier1"" - PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;BINTOOLS_EXPORTS;_CRT_SECURE_NO_DEPRECATE;SOURCEMOD_BUILD;SOURCE_ENGINE=3" + PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;BINTOOLS_EXPORTS;_CRT_SECURE_NO_DEPRECATE;SOURCEMOD_BUILD;HOOKING_ENABLED;SOURCE_ENGINE=3" RuntimeLibrary="0" EnableEnhancedInstructionSet="1" RuntimeTypeInfo="false" diff --git a/public/extensions/IBinTools.h b/public/extensions/IBinTools.h index 66ae0a3e..f201f421 100644 --- a/public/extensions/IBinTools.h +++ b/public/extensions/IBinTools.h @@ -38,6 +38,10 @@ #define SMINTERFACE_BINTOOLS_NAME "IBinTools" #define SMINTERFACE_BINTOOLS_VERSION 3 +#if defined METAMOD_PLAPI_VERSION +#define HOOKING_ENABLED +#endif + #if defined HOOKING_ENABLED #include