// wxOSX/Carbon doesn't generate mouse capture loss events currently so
// poll for the capture loss ourselves.
-#if wxOSX_USE_CARBON
+#if defined(__WXMAC__) && wxOSX_USE_CARBON
// check if the mouse needs captured or released
void OnIdle(wxIdleEvent& event);
#endif