]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/morefile/mfsearch.cpp
nicer version compilation fix for wxUSE_WCHAR_T=0 (why should we duplicate definition...
[wxWidgets.git] / 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);
        }