X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6c8a980fc412792e64256724e02e9d387ee38e21..b08c90ca63723536960122fc798f673af1faed13:/src/common/choiccmn.cpp diff --git a/src/common/choiccmn.cpp b/src/common/choiccmn.cpp index 2e0e59eb66..9fc8861528 100644 --- a/src/common/choiccmn.cpp +++ b/src/common/choiccmn.cpp @@ -6,7 +6,7 @@ // Created: 26.07.99 // RCS-ID: $Id$ // Copyright: (c) wxWindows team -// Licence: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// // ============================================================================ @@ -17,7 +17,7 @@ // headers // ---------------------------------------------------------------------------- -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "choicebase.h" #endif @@ -28,6 +28,8 @@ #pragma hdrstop #endif +#if wxUSE_CHOICE + #ifndef WX_PRECOMP #include "wx/choice.h" #endif @@ -36,6 +38,11 @@ // implementation // ============================================================================ +wxChoiceBase::~wxChoiceBase() +{ + // this destructor is required for Darwin +} + // ---------------------------------------------------------------------------- // selection // ---------------------------------------------------------------------------- @@ -60,3 +67,6 @@ void wxChoiceBase::Command(wxCommandEvent& event) SetSelection(event.m_commandInt); (void)ProcessEvent(event); } + +#endif // wxUSE_CHOICE +