mirror of
https://github.com/sockspls/badfish
synced 2025-04-29 16:23:09 +00:00
Fix cross from Linux to Windows
specifies Windows 7 required https://learn.microsoft.com/en-us/cpp/porting/modifying-winver-and-win32-winnt?view=msvc-170 closes https://github.com/official-stockfish/Stockfish/pull/5319 No functional change
This commit is contained in:
parent
c8375c2fbd
commit
54e74919d4
1 changed files with 5 additions and 0 deletions
|
@ -42,6 +42,11 @@
|
|||
#include <sched.h>
|
||||
#elif defined(_WIN64)
|
||||
|
||||
#if _WIN32_WINNT < 0x0601
|
||||
#undef _WIN32_WINNT
|
||||
#define _WIN32_WINNT 0x0601 // Force to include needed API prototypes
|
||||
#endif
|
||||
|
||||
// On Windows each processor group can have up to 64 processors.
|
||||
// https://learn.microsoft.com/en-us/windows/win32/procthread/processor-groups
|
||||
static constexpr size_t WIN_PROCESSOR_GROUP_SIZE = 64;
|
||||
|
|
Loading…
Add table
Reference in a new issue