Ver Fonte

Added OS Platform (cpu architecture) detection support to windows systems

Zach Mullen há 16 anos atrás
pai
commit
8fe2738096
1 ficheiros alterados com 6 adições e 0 exclusões
  1. 6 0
      Source/kwsys/SystemInformation.cxx

+ 6 - 0
Source/kwsys/SystemInformation.cxx

@@ -3358,6 +3358,12 @@ bool SystemInformationImplementation::QueryOSInformation()
     WSACleanup( );
     }
   this->Hostname = name;
+  
+  const char* arch = getenv("PROCESSOR_ARCHITECTURE");
+  if(arch)
+    {
+    this->OSPlatform = arch;
+    }
 
 #else