X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/03e11df5470fd64d9d9a669d0b50b84c2d714736..ed582841a275d236b9bac7651a0f3e7c91be868d:/src/mac/timer.cpp?ds=sidebyside diff --git a/src/mac/timer.cpp b/src/mac/timer.cpp index a958d21f1f..107906e763 100644 --- a/src/mac/timer.cpp +++ b/src/mac/timer.cpp @@ -72,7 +72,7 @@ bool wxTimer::Start(int milliseconds,bool mode) wxCHECK_MSG( m_info.m_task.tmAddr == NULL , FALSE, wxT("attempting to restart a timer") ); m_milli = milliseconds; -#ifdef __UNIX__ +#if defined(UNIVERSAL_INTERFACES_VERSION) && (UNIVERSAL_INTERFACES_VERSION >= 0x0340) m_info.m_task.tmAddr = NewTimerUPP( MacTimerProc ) ; #else m_info.m_task.tmAddr = NewTimerProc( MacTimerProc ) ;