From 0ad1d9e0255dfefeb2b418fd68d5f4a39e6ee0f4 Mon Sep 17 00:00:00 2001 From: Kyle Sanderson Date: Fri, 4 Mar 2016 15:01:41 -0800 Subject: [PATCH] Windows buildhackfix from 9f7064527045a399f945ec52031863fc5c545678. --- Extension/swgchooks.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Extension/swgchooks.cpp b/Extension/swgchooks.cpp index b156d13..e82396e 100644 --- a/Extension/swgchooks.cpp +++ b/Extension/swgchooks.cpp @@ -25,6 +25,10 @@ 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 *);