Merge pull request #18 from echeese/send-message-fix

Fixed build on Windows due to SendMessage macro
This commit is contained in:
Kyle Sanderson
2016-03-05 13:14:02 -08:00
2 changed files with 4 additions and 4 deletions
-4
View File
@@ -25,10 +25,6 @@ enum
eHooked eHooked
}; };
#ifdef WIN32_LEAN_AND_MEAN
#undef SendMessage
#endif
SH_DECL_HOOK3(ISteamGameCoordinator, SendMessage, SH_NOATTRIB, 0, EGCResults, uint32, const void *, uint32); 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_HOOK1(ISteamGameCoordinator, IsMessageAvailable, SH_NOATTRIB, 0, bool, uint32 *);
SH_DECL_HOOK4(ISteamGameCoordinator, RetrieveMessage, SH_NOATTRIB, 0, EGCResults, uint32 *, void *, uint32, uint32 *); SH_DECL_HOOK4(ISteamGameCoordinator, RetrieveMessage, SH_NOATTRIB, 0, EGCResults, uint32 *, void *, uint32, uint32 *);
+4
View File
@@ -23,6 +23,10 @@
#include "smsdk_ext.h" #include "smsdk_ext.h"
#include "sourcehook.h" #include "sourcehook.h"
#ifdef _WIN32
#undef SendMessage
#endif
class SteamWorksGCHooks class SteamWorksGCHooks
{ {
public: public: