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:
@@ -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()
|
||||
|
Reference in New Issue
Block a user