fix: Define WIN32 and WINDOWS for MSYS2, and remove <qtypes.h> in image.h.

This commit is contained in:
2026-05-21 17:06:29 +08:00
parent 027476e691
commit 3f238ce08e
2 changed files with 6 additions and 1 deletions
+6
View File
@@ -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)