X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ed4b0fdca60e017afe72c55940799ce0fed925f0..99d21c0e1f8d87570702c52dccd3ad698f0a0931:/src/mac/carbon/statbrma.cpp diff --git a/src/mac/carbon/statbrma.cpp b/src/mac/carbon/statbrma.cpp index 1ac0683501..b302d82ab6 100644 --- a/src/mac/carbon/statbrma.cpp +++ b/src/mac/carbon/statbrma.cpp @@ -11,15 +11,17 @@ #include "wx/wxprec.h" +#if wxUSE_STATUSBAR + #include "wx/statusbr.h" #ifndef WX_PRECOMP #include "wx/dc.h" #include "wx/dcclient.h" + #include "wx/toplevel.h" #endif #include "wx/mac/private.h" -#include "wx/toplevel.h" BEGIN_EVENT_TABLE(wxStatusBarMac, wxStatusBarGeneric) @@ -77,8 +79,7 @@ void wxStatusBarMac::DrawFieldText(wxDC& dc, int i) wxString text(GetStatusText( i )); - long x, y; - + wxCoord x, y; dc.GetTextExtent(text, &x, &y); int leftMargin = 2; @@ -175,3 +176,6 @@ void wxStatusBarMac::MacHiliteChanged() Refresh(); Update(); } + +#endif // wxUSE_STATUSBAR +