X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/93e73c740e6cdd6d498439aeb731fe5f3e75ea8d..a73ce5bff20b3d74859530009f0eccee2ccffdf0:/src/motif/gauge.cpp diff --git a/src/motif/gauge.cpp b/src/motif/gauge.cpp index 6a7f0fb2ba..e1e3df3601 100644 --- a/src/motif/gauge.cpp +++ b/src/motif/gauge.cpp @@ -9,12 +9,20 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "gauge.h" #endif -#ifdef __VMS__ +// For compilers that support precompilation, includes "wx.h". +#include "wx/wxprec.h" + +#ifdef __VMS #include +#undef XtDisplay +#undef XtScreen +#undef XtWindow +#undef XtIsRealized +#undef XtParent #endif # include "wx/gauge.h" @@ -136,7 +144,6 @@ bool wxGauge::Create(wxWindow *parent, wxWindowID id, ChangeFont(FALSE); - SetCanAddEventHandler(TRUE); AttachWidget (parent, m_mainWidget, (WXWidget) NULL, x, y, best.x, best.y);