From 3f238ce08eedc8359e7acd31e3da236d0524ef95 Mon Sep 17 00:00:00 2001 From: Mike Solar Date: Thu, 21 May 2026 17:06:29 +0800 Subject: [PATCH] fix: Define WIN32 and WINDOWS for MSYS2, and remove in image.h. --- CMakeLists.txt | 6 ++++++ app/pluginSupport/image.h | 1 - 2 files changed, 6 insertions(+), 1 deletion(-) 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