Skip to content

Commit

Permalink
Ugh
Browse files Browse the repository at this point in the history
  • Loading branch information
DrMcCoy committed Oct 5, 2023
1 parent 7c68fae commit c28a85c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,9 @@ inline static uintptr_t Magic(uintptr_t magic, AllocList::Header *ptr) {
namespace {
size_t GetPageSize() {
#ifdef _WIN32
#undef max
#undef MAX

SYSTEM_INFO system_info;
GetSystemInfo(&system_info);
return std::max(system_info.dwPageSize, system_info.dwAllocationGranularity);
Expand Down

0 comments on commit c28a85c

Please sign in to comment.