From 0db536c063fa7bb9f81abfd2dc9619dfaa033aed Mon Sep 17 00:00:00 2001 From: Nadia Holmquist Pedersen Date: Sat, 23 Nov 2024 12:40:02 +0100 Subject: [PATCH] Set _WIN32_WINNT to Windows 8 when JIT is enabled (fixes #2209) --- src/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index fa8d475c..fef78706 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -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()