Try to tame Windows headers

See also:
https://stackoverflow.com/questions/1394910/how-to-tame-the-windows-headers-useful-defines
This commit is contained in:
Nicolas Werner 2021-11-21 21:19:56 +01:00
parent e7d4aec6ec
commit 71d7ff3a90
No known key found for this signature in database
GPG Key ID: C8D75E610773F2D9
1 changed files with 1 additions and 1 deletions

View File

@ -644,7 +644,7 @@ endif()
if(WIN32)
add_executable (nheko WIN32 ${OS_BUNDLE} ${NHEKO_DEPS})
target_compile_definitions(nheko PRIVATE _WIN32_WINNT=0x0601)
target_compile_definitions(nheko PRIVATE _WIN32_WINNT=0x0601 NOMINMAX WIN32_LEAN_AND_MEAN STRICT)
else()
add_executable (nheko ${OS_BUNDLE} ${NHEKO_DEPS})