Merge pull request #18 from echeese/send-message-fix
Fixed build on Windows due to SendMessage macro
This commit is contained in:
@@ -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 *);
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user