]> git.saurik.com Git - wxWidgets.git/commitdiff
conditional compilation for Universal Interfaces (3.4 or later)
authorGilles Depeyrot <gilles_depeyrot@mac.com>
Thu, 10 May 2001 20:54:41 +0000 (20:54 +0000)
committerGilles Depeyrot <gilles_depeyrot@mac.com>
Thu, 10 May 2001 20:54:41 +0000 (20:54 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10118 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/morefile/mfsearch.cpp

index 8bdba2716b54dee711bc05d7d71c5268f06ad89b..6aed9b934d014168cdbd728badd6eda0c9abfbb8 100644 (file)
@@ -791,7 +791,11 @@ pascal     OSErr   IndexedSearch(CSParamPtr pb,
        if ( pb->ioSearchTime != 0 )
        {
                /* Start timer */
+#if defined(UNIVERSAL_INTERFACES_VERSION) && (UNIVERSAL_INTERFACES_VERSION >= 0x0340)
+               timerTask.theTask.tmAddr = NewTimerUPP(TimeOutTask);
+#else
                timerTask.theTask.tmAddr = NewTimerProc(TimeOutTask);
+#endif
                InsTime((QElemPtr)&(timerTask.theTask));
                PrimeTime((QElemPtr)&(timerTask.theTask), pb->ioSearchTime);
        }