X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/eaafd2f8b7acf211feb30c86db037fffe22ee565..86b79b93fbbb0c2e90e6595f7fea0f979b80881c:/src/gtk/control.cpp diff --git a/src/gtk/control.cpp b/src/gtk/control.cpp index 8801219ee3..82f10af912 100644 --- a/src/gtk/control.cpp +++ b/src/gtk/control.cpp @@ -7,10 +7,13 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "control.h" #endif +// For compilers that support precompilation, includes "wx.h". +#include "wx/wxprec.h" + #include "wx/defs.h" #if wxUSE_CONTROLS @@ -83,6 +86,7 @@ wxSize wxControl::DoGetBestSize() const return wxSize(req.width, req.height); } +#ifdef __WXGTK20__ wxString wxControl::PrepareLabelMnemonics( const wxString &label ) const { //Format mnemonics properly for GTK2. This can be called from GTK1.x, but @@ -124,6 +128,7 @@ wxString wxControl::PrepareLabelMnemonics( const wxString &label ) const } return label2; } +#endif #endif // wxUSE_CONTROLS