]> git.saurik.com Git - wxWidgets.git/commitdiff
use wxMac provided wxGetOsDescription with Apple DevTools
authorGilles Depeyrot <gilles_depeyrot@mac.com>
Sun, 20 Jan 2002 18:22:48 +0000 (18:22 +0000)
committerGilles Depeyrot <gilles_depeyrot@mac.com>
Sun, 20 Jan 2002 18:22:48 +0000 (18:22 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13705 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/utils.cpp
src/mac/utils.cpp
src/unix/utilsunx.cpp

index d7e671c58236cdf3330c776f5f1ed5f1be880b47..2e2ffd6c4a37c12ccabd251f0f11d7a7adcc1301 100644 (file)
@@ -486,5 +486,11 @@ wxWindow* wxFindWindowAtPoint(const wxPoint& pt)
 
 wxString wxGetOsDescription()
 {
-  return "MacOS" ; //TODO:define further
-}
\ No newline at end of file
+#ifdef WXWIN_OS_DESCRIPTION
+    // use configure generated description if available
+    return wxString("MacOS (") + WXWIN_OS_DESCRIPTION + wxString(")");
+#else
+    return "MacOS" ; //TODO:define further
+#endif
+}
+
index d7e671c58236cdf3330c776f5f1ed5f1be880b47..2e2ffd6c4a37c12ccabd251f0f11d7a7adcc1301 100644 (file)
@@ -486,5 +486,11 @@ wxWindow* wxFindWindowAtPoint(const wxPoint& pt)
 
 wxString wxGetOsDescription()
 {
-  return "MacOS" ; //TODO:define further
-}
\ No newline at end of file
+#ifdef WXWIN_OS_DESCRIPTION
+    // use configure generated description if available
+    return wxString("MacOS (") + WXWIN_OS_DESCRIPTION + wxString(")");
+#else
+    return "MacOS" ; //TODO:define further
+#endif
+}
+
index 6fdbc765eb491206f5fd11929e60d9300c556bbe..171918e24ea3c1cd9e1411dd6515080b04de2887 100644 (file)
@@ -948,6 +948,7 @@ bool wxGetUserName(wxChar *buf, int sz)
     return FALSE;
 }
 
+#ifndef __WXMAC__
 wxString wxGetOsDescription()
 {
 #ifndef WXWIN_OS_DESCRIPTION
@@ -956,6 +957,7 @@ wxString wxGetOsDescription()
     return WXWIN_OS_DESCRIPTION;
 #endif
 }
+#endif
 
 // this function returns the GUI toolkit version in GUI programs, but OS
 // version in non-GUI ones