Set _WIN32_WINNT to Windows 8 when JIT is enabled (fixes #2209)

This commit is contained in:
Nadia Holmquist Pedersen 2024-11-23 12:40:02 +01:00
parent 6a15dbfa12
commit 0db536c063
1 changed files with 2 additions and 0 deletions

View File

@ -102,6 +102,8 @@ if (ENABLE_JIT)
dolphin/CommonFuncs.cpp)
if (WIN32)
# Required for memory mapping-related functions introduced in Windows 8
target_compile_definitions(core PRIVATE -D_WIN32_WINNT=_WIN32_WINNT_WIN8)
target_link_libraries(core PRIVATE onecore)
endif()