]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/utils.cpp
allow compilation with wxUSE_CHOICEDLG set to 0
[wxWidgets.git] / src / motif / utils.cpp
index b14765332d650d08c20e2b92d4825d5bf4b7465e..f6b0179f115000803174b219c32a02796304a07c 100644 (file)
 // headers
 // ----------------------------------------------------------------------------
 
+// For compilers that support precompilation, includes "wx.h".
+#include "wx/wxprec.h"
+
 #ifdef __VMS
 #define XtDisplay XTDISPLAY
 #endif
+
 #include "wx/setup.h"
 #include "wx/utils.h"
 #include "wx/apptrait.h"
@@ -127,11 +131,14 @@ int wxAddProcessCallback(wxEndProcessData *proc_data, int fd)
 // ----------------------------------------------------------------------------
 
 // Emit a beeeeeep
+#ifndef __EMX__
+// on OS/2, we use the wxBell from wxBase library (src/os2/utils.cpp)
 void wxBell()
 {
     // Use current setting for the bell
     XBell (wxGlobalDisplay(), 0);
 }
+#endif
 
 wxToolkitInfo& wxGUIAppTraits::GetToolkitInfo()
 {
@@ -627,6 +634,9 @@ wxWindow* wxFindWindowAtPoint(const wxPoint& pt)
     return wxGenericFindWindowAtPoint(pt);
 }
 
+// Now in utilsx11.cpp
+#if 0
+
 // ----------------------------------------------------------------------------
 // keycode translations
 // ----------------------------------------------------------------------------
@@ -869,6 +879,7 @@ KeySym wxCharCodeWXToX(int id)
 
     return keySym;
 }
+#endif
 
 // ----------------------------------------------------------------------------
 // Some colour manipulation routines