Skip to content

Commit

Permalink
Set _WIN32_WINNT to Windows 8 when JIT is enabled (fixes #2209)
Browse files Browse the repository at this point in the history
  • Loading branch information
nadiaholmquist committed Nov 23, 2024
1 parent 6a15dbf commit 0db536c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 0db536c

Please sign in to comment.