[*] wrap win32 specific path around AURORA_PLATFORM_WIN32

This commit is contained in:
Reece Wilson 2022-01-20 19:27:14 +00:00
parent 6a35b68fdc
commit 490d3892a2

View File

@ -73,6 +73,7 @@ namespace Aurora::HWInfo
#if defined(AURORA_IS_MODERNNT_DERIVED)
auto max = GetMemStatSystem().value_or(RamStat {}).available;
#if defined(AURORA_PLATFORM_WIN32)
if (IsWindows10OrGreater())
{
struct VM_COUNTERS_EX
@ -111,6 +112,7 @@ namespace Aurora::HWInfo
return RamStat {vm.PrivateWorkingSetSize, max};
}
}
#endif
PROCESS_MEMORY_COUNTERS pmc;
if (!GetProcessMemoryInfo(GetCurrentProcess(), &pmc, sizeof(PROCESS_MEMORY_COUNTERS)))