mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-24 15:18:26 -05:00
BUG: really fix build on vs6
This commit is contained in:
@@ -2230,13 +2230,13 @@ int SystemInformationImplementation::QueryMemory()
|
||||
#elif _WIN32
|
||||
#if _MSC_VER < 1300
|
||||
MEMORYSTATUS ms;
|
||||
GlobalMemoryStatus(&ms);
|
||||
#define MEM_VAL(value) dw##value
|
||||
#else
|
||||
MEMORYSTATUSEX ms;
|
||||
GlobalMemoryStatusEx(&ms);
|
||||
#define MEM_VAL(value) ull##value
|
||||
#endif
|
||||
GlobalMemoryStatusEx(&ms);
|
||||
|
||||
unsigned long tv = ms.MEM_VAL(TotalVirtual);
|
||||
unsigned long tp = ms.MEM_VAL(TotalPhys);
|
||||
unsigned long av = ms.MEM_VAL(AvailVirtual);
|
||||
|
||||
Reference in New Issue
Block a user