X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3413ceade83fb3026228e192d5737389aef3ad89..3d63970769b32a93061989a38a00a5b6110bc7a5:/src/mac/carbon/radiobox.cpp diff --git a/src/mac/carbon/radiobox.cpp b/src/mac/carbon/radiobox.cpp index bae7911630..2470710782 100644 --- a/src/mac/carbon/radiobox.cpp +++ b/src/mac/carbon/radiobox.cpp @@ -9,7 +9,7 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "radioboxbase.h" #pragma implementation "radiobox.h" #endif @@ -18,7 +18,8 @@ // headers //------------------------------------------------------------------------------------- -#include "wx/defs.h" +#include "wx/wxprec.h" + #include "wx/arrstr.h" #include "wx/radiobox.h" @@ -140,7 +141,7 @@ bool wxRadioBox::Create(wxWindow *parent, wxWindowID id, const wxString& label, m_peer = new wxMacControl() ; verify_noerr(CreateGroupBoxControl(MAC_WXHWND(parent->MacGetTopLevelWindowRef()),&bounds, CFSTR("") , - true /*primary*/ , *m_peer ) ) ; + true /*primary*/ , m_peer->GetControlRefAddr() ) ) ; for (i = 0; i < n; i++) {