From e6b717e71305665a835e2e66adfa108ee28e5564 Mon Sep 17 00:00:00 2001 From: jules Date: Mon, 22 Apr 2013 16:37:16 +0100 Subject: [PATCH] Some mingw compile fixes. --- modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp | 8 ++++++++ .../format_types/juce_VSTPluginFormat.cpp | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp b/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp index 5b2c290369..3810f7448b 100644 --- a/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp +++ b/modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp @@ -41,6 +41,14 @@ #undef STRICT #define STRICT 1 #include + + #ifdef __MINGW32__ + struct MOUSEHOOKSTRUCTEX + { + MOUSEHOOKSTRUCT _unnamed; + DWORD mouseData; + }; + #endif #elif defined (LINUX) #include #include diff --git a/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp b/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp index 8819baff64..e0ff8154bb 100644 --- a/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp +++ b/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp @@ -65,6 +65,10 @@ #include "juce_VSTMidiEventList.h" #if JUCE_MINGW + #ifndef WM_APPCOMMAND + #define WM_APPCOMMAND 0x0319 + #endif + extern "C" void _fpreset(); extern "C" void _clearfp(); #elif ! JUCE_WINDOWS