#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"
{
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
{