git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51814
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// #include "MoreFilesX.h"
// #include "MoreFilesX.h"
-#ifndef __DARWIN__
- #include <Threads.h>
- #include <Sound.h>
+#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5
+ #include <AudioToolbox/AudioServices.h>
// Emit a beeeeeep
void wxBell()
{
// Emit a beeeeeep
void wxBell()
{
-#ifndef __LP64__
- SysBeep(30);
+#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5
+ if ( AudioServicesPlayAlertSound )
+ AudioServicesPlayAlertSound(kUserPreferredAlert);
+ else
+#endif
+#if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_5
+ SysBeep(30);
+#else
+ {
+ }
+#include <sys/utsname.h>
+
wxString wxGetOsDescription()
{
wxString wxGetOsDescription()
{
-#ifdef WXWIN_OS_DESCRIPTION
- // use configure generated description if available
- return wxString(wxT("MacOS (")) + wxT(WXWIN_OS_DESCRIPTION) + wxString(wxT(")"));
-#else
- return wxT("MacOS"); //TODO:define further
-#endif
+ char data[128];
+ struct utsname name;
+ uname(&name);
+ sprintf(data, "Mac OS X (%s %s %s)", name.sysname, name.release, name.machine);
+ return wxString(data, wxConvUTF8);