From: Gilles Depeyrot Date: Sat, 21 Jul 2001 05:32:09 +0000 (+0000) Subject: corrections for wxGtk compilation under Darwin/Mac OS X X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/1d8729431c8c202bd57aadccf87e0a4777baa055 corrections for wxGtk compilation under Darwin/Mac OS X git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11132 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/gtk/dataobj.h b/include/wx/gtk/dataobj.h index 0794fcf51f..bd6783c977 100644 --- a/include/wx/gtk/dataobj.h +++ b/include/wx/gtk/dataobj.h @@ -22,7 +22,10 @@ class wxDataObject : public wxDataObjectBase { public: wxDataObject(); - +#ifdef __DARWIN__ + virtual ~wxDataObject() { } +#endif + virtual bool IsSupportedFormat( const wxDataFormat& format, Direction dir = Get ) const; }; diff --git a/include/wx/gtk/popupwin.h b/include/wx/gtk/popupwin.h index ef0b43b49f..63c17d793d 100644 --- a/include/wx/gtk/popupwin.h +++ b/include/wx/gtk/popupwin.h @@ -27,7 +27,10 @@ class wxPopupWindow: public wxPopupWindowBase { public: wxPopupWindow() { } - +#ifdef __DARWIN__ + virtual ~wxPopupWindow() { } +#endif + wxPopupWindow(wxWindow *parent) { (void)Create(parent); } bool Create(wxWindow *parent, int flags = wxBORDER_NONE); diff --git a/include/wx/gtk1/dataobj.h b/include/wx/gtk1/dataobj.h index 0794fcf51f..bd6783c977 100644 --- a/include/wx/gtk1/dataobj.h +++ b/include/wx/gtk1/dataobj.h @@ -22,7 +22,10 @@ class wxDataObject : public wxDataObjectBase { public: wxDataObject(); - +#ifdef __DARWIN__ + virtual ~wxDataObject() { } +#endif + virtual bool IsSupportedFormat( const wxDataFormat& format, Direction dir = Get ) const; }; diff --git a/include/wx/gtk1/popupwin.h b/include/wx/gtk1/popupwin.h index ef0b43b49f..63c17d793d 100644 --- a/include/wx/gtk1/popupwin.h +++ b/include/wx/gtk1/popupwin.h @@ -27,7 +27,10 @@ class wxPopupWindow: public wxPopupWindowBase { public: wxPopupWindow() { } - +#ifdef __DARWIN__ + virtual ~wxPopupWindow() { } +#endif + wxPopupWindow(wxWindow *parent) { (void)Create(parent); } bool Create(wxWindow *parent, int flags = wxBORDER_NONE); diff --git a/include/wx/popupwin.h b/include/wx/popupwin.h index ea63c1484b..bd9524c08f 100644 --- a/include/wx/popupwin.h +++ b/include/wx/popupwin.h @@ -29,6 +29,9 @@ class WXDLLEXPORT wxPopupWindowBase : public wxWindow { public: wxPopupWindowBase() { } +#ifdef __DARWIN__ + virtual ~wxPopupWindowBase() { } +#endif // create the popup window //