From ea74ee6e259c544e576c581ebf4d15b8fa76aec0 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Tue, 11 Aug 2020 13:11:42 +1000 Subject: [PATCH] [host] windows: fix crosscompile take 2 --- host/platform/Windows/src/platform.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/host/platform/Windows/src/platform.c b/host/platform/Windows/src/platform.c index 72d2a6a5..77d57510 100644 --- a/host/platform/Windows/src/platform.c +++ b/host/platform/Windows/src/platform.c @@ -58,7 +58,12 @@ typedef NTSTATUS (__stdcall *ZwSetTimerResolution_t)(ULONG RequestedResolution, static ZwSetTimerResolution_t ZwSetTimerResolution = NULL; // linux mingw64 is missing this -typedef WINBOOL WINAPI (*PChangeWindowMessageFilterEx)(HWND hwnd, UINT message, DWORD action, PCHANGEFILTERSTRUCT pChangeFilterStruct); +#ifndef MSGFLT_RESET + #define MSGFLT_RESET (0) + #define MSGFLT_ALLOW (1) + #define MSGFLT_DISALLOW (2) +#endif +typedef WINBOOL WINAPI (*PChangeWindowMessageFilterEx)(HWND hwnd, UINT message, DWORD action, void * pChangeFilterStruct); PChangeWindowMessageFilterEx _ChangeWindowMessageFilterEx = NULL; static void RegisterTrayIcon()