BUG: really fix build on vs6
This commit is contained in:
parent
47fa89b6e9
commit
bf8ed70534
|
@ -2230,13 +2230,13 @@ int SystemInformationImplementation::QueryMemory()
|
||||||
#elif _WIN32
|
#elif _WIN32
|
||||||
#if _MSC_VER < 1300
|
#if _MSC_VER < 1300
|
||||||
MEMORYSTATUS ms;
|
MEMORYSTATUS ms;
|
||||||
|
GlobalMemoryStatus(&ms);
|
||||||
#define MEM_VAL(value) dw##value
|
#define MEM_VAL(value) dw##value
|
||||||
#else
|
#else
|
||||||
MEMORYSTATUSEX ms;
|
MEMORYSTATUSEX ms;
|
||||||
|
GlobalMemoryStatusEx(&ms);
|
||||||
#define MEM_VAL(value) ull##value
|
#define MEM_VAL(value) ull##value
|
||||||
#endif
|
#endif
|
||||||
GlobalMemoryStatusEx(&ms);
|
|
||||||
|
|
||||||
unsigned long tv = ms.MEM_VAL(TotalVirtual);
|
unsigned long tv = ms.MEM_VAL(TotalVirtual);
|
||||||
unsigned long tp = ms.MEM_VAL(TotalPhys);
|
unsigned long tp = ms.MEM_VAL(TotalPhys);
|
||||||
unsigned long av = ms.MEM_VAL(AvailVirtual);
|
unsigned long av = ms.MEM_VAL(AvailVirtual);
|
||||||
|
|
Loading…
Reference in New Issue