From 7c23c02e47739ee77f29a9bec4d5440b59dc54d3 Mon Sep 17 00:00:00 2001 From: falkTX Date: Sat, 30 Dec 2023 23:46:17 +0100 Subject: [PATCH] Fix mingw LV2 build Signed-off-by: falkTX --- modules/juce_audio_plugin_client/LV2/juce_LV2_Wrapper.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/juce_audio_plugin_client/LV2/juce_LV2_Wrapper.cpp b/modules/juce_audio_plugin_client/LV2/juce_LV2_Wrapper.cpp index 1ec4d3fdc3..48749442c8 100644 --- a/modules/juce_audio_plugin_client/LV2/juce_LV2_Wrapper.cpp +++ b/modules/juce_audio_plugin_client/LV2/juce_LV2_Wrapper.cpp @@ -12,6 +12,12 @@ #if JucePlugin_Build_LV2 +#if JUCE_WINDOWS +/* The "juce_IncludeSystemHeaders.h" header will unset _WIN32_WINNT which breaks mingw + * So we include system headers early to prevent build issues. */ +#include +#endif + #include "../utility/juce_IncludeSystemHeaders.h" /** Plugin requires processing with a fixed/constant block size */