X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6e711d5c093dcc758e3f1670caf845612ea9fa92..333e110dab18d80a24f143e3d26103bec255c34f:/include/wx/control.h diff --git a/include/wx/control.h b/include/wx/control.h index 549f98d183..afbabb3ad7 100644 --- a/include/wx/control.h +++ b/include/wx/control.h @@ -16,7 +16,7 @@ // headers // ---------------------------------------------------------------------------- -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(__APPLE__) #pragma interface "controlbase.h" #endif @@ -33,6 +33,8 @@ WXDLLEXPORT_DATA(extern const wxChar*) wxControlNameStr; class WXDLLEXPORT wxControlBase : public wxWindow { public: + virtual ~wxControlBase(); + // Create() function adds the validator parameter bool Create(wxWindow *parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, @@ -48,10 +50,6 @@ public: // get the control alignment (left/right/centre, top/bottom/centre) int GetAlignment() const { return m_windowStyle & wxALIGN_MASK; } -#ifdef __DARWIN__ - virtual ~wxControlBase() { } -#endif - protected: // creates the control (calls wxWindowBase::CreateBase inside) and adds it // to the list of parents children