diff --git a/Extension/swgchooks.cpp b/Extension/swgchooks.cpp index e82396e..b156d13 100644 --- a/Extension/swgchooks.cpp +++ b/Extension/swgchooks.cpp @@ -25,10 +25,6 @@ enum eHooked }; -#ifdef WIN32_LEAN_AND_MEAN -#undef SendMessage -#endif - SH_DECL_HOOK3(ISteamGameCoordinator, SendMessage, SH_NOATTRIB, 0, EGCResults, uint32, const void *, uint32); SH_DECL_HOOK1(ISteamGameCoordinator, IsMessageAvailable, SH_NOATTRIB, 0, bool, uint32 *); SH_DECL_HOOK4(ISteamGameCoordinator, RetrieveMessage, SH_NOATTRIB, 0, EGCResults, uint32 *, void *, uint32, uint32 *); diff --git a/Extension/swgchooks.h b/Extension/swgchooks.h index 53071ab..3ffc3be 100644 --- a/Extension/swgchooks.h +++ b/Extension/swgchooks.h @@ -23,6 +23,10 @@ #include "smsdk_ext.h" #include "sourcehook.h" +#ifdef _WIN32 +#undef SendMessage +#endif + class SteamWorksGCHooks { public: