Fixed build on Windows due to SendMessage macro

This commit is contained in:
Ryan Speets
2016-03-05 11:14:01 -05:00
parent 596d169395
commit 735f4c92a4
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: