[*] wrap win32 specific path around AURORA_PLATFORM_WIN32
This commit is contained in:
parent
6a35b68fdc
commit
490d3892a2
@ -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)))
|
||||
|
Loading…
Reference in New Issue
Block a user