X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fe3fcb057f50ed3a8c4f6f86aba4e65561325e06..7379599933e8db2dc319bd5240b4992687db4e46:/src/mac/carbon/cursor.cpp?ds=sidebyside diff --git a/src/mac/carbon/cursor.cpp b/src/mac/carbon/cursor.cpp index 374a67e9c0..247d910752 100644 --- a/src/mac/carbon/cursor.cpp +++ b/src/mac/carbon/cursor.cpp @@ -13,6 +13,9 @@ #pragma implementation "cursor.h" #endif +#include "wx/defs.h" + +#include "wx/app.h" #include "wx/cursor.h" #include "wx/icon.h" #include "wx/mac/private.h" @@ -214,8 +217,9 @@ void wxCursor::MacInstall() const { if ( m_refData && M_CURSORDATA->m_hCursor ) { - ::SetCursor( *((CursHandle)M_CURSORDATA->m_hCursor) ) ; - gMacCurrentCursor = (CursHandle)M_CURSORDATA->m_hCursor ; + CursHandle ch = ((CursHandle)M_CURSORDATA->m_hCursor) ; + ::SetCursor( *ch ) ; + gMacCurrentCursor = ch ; } else {