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.
This commit is contained in:
Teemu Korhonen
2022-02-12 19:27:27 +02:00
committed by GitHub
parent 417a009c86
commit 474f962274

View File

@@ -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()