]> git.saurik.com Git - wxWidgets.git/blobdiff - src/unix/utilsunx.cpp
shouldn't update cursor for hidden windows
[wxWidgets.git] / src / unix / utilsunx.cpp
index d14a33a5e6d73ac877a52dc06ef16b086889b368..b26b8df3f5671750ed99d859f1912ab09488bdbd 100644 (file)
@@ -891,12 +891,29 @@ bool wxGetUserName(wxChar *buf, int sz)
     return false;
 }
 
+bool wxIsPlatform64Bit()
+{
+    wxString machine = wxGetCommandOutput(wxT("uname -m"));
+
+    // NOTE: these tests are not 100% reliable!
+    return machine.Contains(wxT("AMD64")) ||
+           machine.Contains(wxT("IA64")) ||
+           machine.Contains(wxT("x64")) ||
+           machine.Contains(wxT("X64")) ||
+           machine.Contains(wxT("alpha")) ||
+           machine.Contains(wxT("hppa64")) ||
+           machine.Contains(wxT("ppc64"));
+}
+
+// these functions are in mac/utils.cpp for wxMac
+#ifndef __WXMAC__
+
 wxOperatingSystemId wxGetOsVersion(int *verMaj, int *verMin)
 {
     // get OS version
     int major, minor;
     wxString release = wxGetCommandOutput(wxT("uname -r"));
-    if ( !release.empty() && wxSscanf(release, "%d.%d", &major, &minor) != 2 )
+    if ( !release.empty() && wxSscanf(release, wxT("%d.%d"), &major, &minor) != 2 )
     {
         // unrecognized uname string format
         major =
@@ -919,23 +936,6 @@ wxOperatingSystemId wxGetOsVersion(int *verMaj, int *verMin)
     return wxPlatformInfo::GetOperatingSystemId(kernel);
 }
 
-bool wxIsPlatform64Bit()
-{
-    wxString machine = wxGetCommandOutput(wxT("uname -m"));
-
-    // NOTE: these tests are not 100% reliable!
-    return machine.Contains(wxT("AMD64")) ||
-           machine.Contains(wxT("IA64")) ||
-           machine.Contains(wxT("x64")) ||
-           machine.Contains(wxT("X64")) ||
-           machine.Contains(wxT("alpha")) ||
-           machine.Contains(wxT("hppa64")) ||
-           machine.Contains(wxT("ppc64"));
-}
-
-// this function is in mac/utils.cpp for wxMac
-#ifndef __WXMAC__
-
 wxString wxGetOsDescription()
 {
     return wxGetCommandOutput(wxT("uname -s -r -m"));