Skip to content

Commit

Permalink
Fix cross from Linux to Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
vondele authored and Disservin committed May 30, 2024
1 parent c8375c2 commit 54e7491
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/numa.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 54e7491

Please sign in to comment.