X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9234615181cb1b63d509c2e16afb39b374d44987..62f864c32c53356b7228591c85b14abc491c46f0:/src/mac/carbon/utils.cpp diff --git a/src/mac/carbon/utils.cpp b/src/mac/carbon/utils.cpp index 00a59e4527..69a34ceec5 100644 --- a/src/mac/carbon/utils.cpp +++ b/src/mac/carbon/utils.cpp @@ -50,9 +50,13 @@ #include #endif +#ifdef __DARWIN__ +#include +#else #include #include #include +#endif #endif // wxUSE_GUI #include "wx/mac/private.h" // includes mac headers @@ -93,7 +97,7 @@ static int DoGetOSVersion(int *majorVsn, int *minorVsn) // debugging support // ---------------------------------------------------------------------------- -#if defined(__WXMAC__) && !defined(__DARWIN__) && defined(__MWERKS__) && (__MWERKS__ >= 0x2400) +#if defined(__WXDEBUG__) && defined(__WXMAC__) && !defined(__DARWIN__) && defined(__MWERKS__) && (__MWERKS__ >= 0x2400) // MetroNub stuff doesn't seem to work in CodeWarrior 5.3 Carbon builds... @@ -1382,7 +1386,6 @@ void wxMacControl::ScrollRect( wxRect *r , int dx , int dy ) { Rect bounds ; GetControlBounds( m_controlRef , &bounds ) ; - Point topleft = { bounds.top , bounds.left } ; bounds.left += r->x ; bounds.top += r->y ; bounds.bottom = bounds.top + r->height ;