]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/button.cpp
added wx/defs.h include to correct compilation issues under Mac OS X
[wxWidgets.git] / src / mac / button.cpp
index d4837fd54a90709aaeb3b6b281215ff1785f7ddd..b8689ca0fd8319ddf12133565c3970624a5c1587 100644 (file)
@@ -22,7 +22,7 @@
 IMPLEMENT_DYNAMIC_CLASS(wxButton, wxControl)
 #endif
 
-#include <wx/mac/uma.h>
+#include "wx/mac/uma.h"
 // Button
 
 
@@ -53,11 +53,12 @@ void wxButton::SetDefault()
     wxPanel *panel = wxDynamicCast(parent, wxPanel);
     if ( panel )
     {
-        btnOldDefault = panel->GetDefaultItem();
+        btnOldDefault = wxDynamicCast(panel->GetDefaultItem(),
+           wxButton);
         panel->SetDefaultItem(this);
     }
 
-#ifdef __UNIX__
+#ifdef __DARWIN__
        Boolean inData;
        if ( btnOldDefault && btnOldDefault->m_macControl )
        {