// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "button.h"
#endif
-#include "wx/defs.h"
+#include "wx/wxprec.h"
#include "wx/button.h"
#include "wx/panel.h"
#include "wx/stockitem.h"
-#if !USE_SHARED_LIBRARY
IMPLEMENT_DYNAMIC_CLASS(wxButton, wxControl)
-#endif
#include "wx/mac/uma.h"
// Button
m_label = label ;
Rect bounds = wxMacGetBoundsForControl( this , pos , size ) ;
- m_peer = new wxMacControl() ;
+ m_peer = new wxMacControl(this) ;
if ( id == wxID_HELP )
{
ControlButtonContentInfo info ;