From 474f962274786d025e6e05722e79fa014f7525d7 Mon Sep 17 00:00:00 2001 From: Teemu Korhonen <80648513+ts-korhonen@users.noreply.github.com> Date: Sat, 12 Feb 2022 19:27:27 +0200 Subject: [PATCH] qt: fix MinGW builds; set NTDDI_VERSION explicitly (#2110) MinGW Qt windows.h defines NTDDI_VERSION as Windows Vista while WINVER and WIN32_WINNT as Windows 7. --- src/qt/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/qt/CMakeLists.txt b/src/qt/CMakeLists.txt index 9bae270ab..e246ce920 100644 --- a/src/qt/CMakeLists.txt +++ b/src/qt/CMakeLists.txt @@ -146,6 +146,10 @@ if(WIN32) set_property(SOURCE ../win/86Box-qt.rc PROPERTY COMPILE_DEFINITIONS NO_INCLUDE_MANIFEST) target_sources(86Box PRIVATE ../win/86Box.manifest) endif() + + if (MINGW) + add_compile_definitions(NTDDI_VERSION=0x06010000) + endif() else() target_sources(plat PRIVATE sdl_joystick.cpp) endif()