diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2008-05-02 21:36:08 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2008-05-02 21:36:08 (GMT) |
commit | bf8ed70534c149a18ca2a9af50effdceb7e12b44 (patch) | |
tree | 7bb20ce50fbaf3c7bf90048443f596b2e5798395 /Source | |
parent | 47fa89b6e96a34a7f81edb7bbf4c7f55035093cc (diff) | |
download | CMake-bf8ed70534c149a18ca2a9af50effdceb7e12b44.zip CMake-bf8ed70534c149a18ca2a9af50effdceb7e12b44.tar.gz CMake-bf8ed70534c149a18ca2a9af50effdceb7e12b44.tar.bz2 |
BUG: really fix build on vs6
Diffstat (limited to 'Source')
-rw-r--r-- | Source/kwsys/SystemInformation.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/kwsys/SystemInformation.cxx b/Source/kwsys/SystemInformation.cxx index 5720dff..ee762c7 100644 --- a/Source/kwsys/SystemInformation.cxx +++ b/Source/kwsys/SystemInformation.cxx @@ -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); |