summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/SystemInformation.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2008-02-01 02:33:32 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2008-02-01 02:33:32 (GMT)
commitcc7c89ca518f31b178451a021ffe80a926e5e08a (patch)
tree4c5b82154c9a292f6f1793036b5c469dfb13f844 /Source/kwsys/SystemInformation.cxx
parent5a36673807a304206fd729fcba1ce93dfb54b521 (diff)
downloadCMake-cc7c89ca518f31b178451a021ffe80a926e5e08a.zip
CMake-cc7c89ca518f31b178451a021ffe80a926e5e08a.tar.gz
CMake-cc7c89ca518f31b178451a021ffe80a926e5e08a.tar.bz2
ENH: try to fix hp and vs 6, again...
Diffstat (limited to 'Source/kwsys/SystemInformation.cxx')
-rw-r--r--Source/kwsys/SystemInformation.cxx13
1 files changed, 7 insertions, 6 deletions
diff --git a/Source/kwsys/SystemInformation.cxx b/Source/kwsys/SystemInformation.cxx
index cf454bb..2c9baca 100644
--- a/Source/kwsys/SystemInformation.cxx
+++ b/Source/kwsys/SystemInformation.cxx
@@ -125,7 +125,7 @@ public:
void RunCPUCheck();
void RunOSCheck();
void RunMemoryCheck();
-private:
+public:
#define VENDOR_STRING_LENGTH (12 + 1)
#define CHIPNAME_STRING_LENGTH (48 + 1)
#define SERIALNUMBER_STRING_LENGTH (29 + 1)
@@ -389,15 +389,15 @@ unsigned long SystemInformation::GetAvailablePhysicalMemory()
/** Run the different checks */
void SystemInformation::RunCPUCheck()
{
- return this->Implementation->RunCPUCheck();
+ this->Implementation->RunCPUCheck();
}
void SystemInformation::RunOSCheck()
{
- return this->Implementation->RunOSCheck();
+ this->Implementation->RunOSCheck();
}
void SystemInformation::RunMemoryCheck()
{
- return this->Implementation->RunMemoryCheck();
+ this->Implementation->RunMemoryCheck();
}
@@ -2947,7 +2947,7 @@ bool SystemInformationImplementation::QueryOSInformation()
{
this->OSRelease = "XP";
}
-
+#ifdef VER_NT_WORKSTATION
// Test for product type.
if (bOsVersionInfoEx)
{
@@ -2990,8 +2990,9 @@ bool SystemInformationImplementation::QueryOSInformation()
sprintf (operatingSystem, "%s(Build %d)", osvi.szCSDVersion, osvi.dwBuildNumber & 0xFFFF);
this->OSVersion = operatingSystem;
- }
+ }
else
+#endif // VER_NT_WORKSTATION
{
HKEY hKey;
char szProductType[80];