diff --git a/CMakeLists.txt b/CMakeLists.txt index 07c8e2f5b..2a89d1e13 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -77,6 +77,12 @@ else() endif() endif() +# MinGW does not define WIN32/WINDOWS the way OpenFX HostSupport expects. +# Ensure these are visible so ofxhBinary.h et al. pick the Windows code path. +if(MINGW) + add_compile_definitions(WIN32 WINDOWS) +endif() + set(OLIVE_DEFINITIONS -DQT_DEPRECATED_WARNINGS) if (WIN32) list(APPEND OLIVE_DEFINITIONS -DUNICODE -D_UNICODE) diff --git a/app/pluginSupport/image.h b/app/pluginSupport/image.h index 44f21e97b..7ea5e6658 100644 --- a/app/pluginSupport/image.h +++ b/app/pluginSupport/image.h @@ -27,7 +27,6 @@ #include "render/loopmode.h" #include "render/videoparams.h" #include -#include #include #include namespace olive