]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/platinfo.cpp
reverted the change of r32940 which worked around a bug due to associating a dummy...
[wxWidgets.git] / src / common / platinfo.cpp
index 1d8d99e22fb5900aa309f78661f28f2b5028364d..163a4c1f63d6aa3b3289eaffc70068ecc051d02f 100644 (file)
@@ -62,6 +62,9 @@ static const wxChar* const wxOperatingSystemIdNames[] =
     _T("AIX"),
     _T("HPUX"),
 
+    _T("Other Unix"),
+    _T("Other Unix"),
+
     _T("DOS"),
     _T("OS/2")
 };
@@ -321,11 +324,11 @@ wxArchitecture wxPlatformInfo::GetArch(const wxString &arch)
 
 wxEndianness wxPlatformInfo::GetEndianness(const wxString& end)
 {
-    wxString endl(end.Lower());
-    if ( end.StartsWith(wxT("little")) )
+    const wxString endl(end.Lower());
+    if ( endl.StartsWith(wxT("little")) )
         return wxENDIAN_LITTLE;
 
-    if ( end.StartsWith(wxT("big")) )
+    if ( endl.StartsWith(wxT("big")) )
         return wxENDIAN_BIG;
 
     return wxENDIAN_INVALID;