X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9f92f6fbab2c965c5b7f53c35c3cc3fb69eb2172..2cc78389312dce6285d0d6b6e891d24372252ada:/src/mac/filedlg.cpp diff --git a/src/mac/filedlg.cpp b/src/mac/filedlg.cpp index 66e3c72b57..144cdee796 100644 --- a/src/mac/filedlg.cpp +++ b/src/mac/filedlg.cpp @@ -20,7 +20,7 @@ #include "wx/filedlg.h" #include "wx/intl.h" -#if !defined(__UNIX__) +#ifndef __DARWIN__ #include "PLStringFuncs.h" #endif @@ -30,13 +30,11 @@ IMPLEMENT_CLASS(wxFileDialog, wxDialog) // begin wxmac -#if defined(__UNIX__) - #include -#else +#ifndef __DARWIN__ #include #endif -#ifndef __UNIX__ +#ifndef __DARWIN__ #include "morefile.h" #include "moreextr.h" #include "fullpath.h" @@ -546,7 +544,7 @@ wxFileDialog::wxFileDialog(wxWindow *parent, const wxString& message, } -Boolean CrossPlatformFilterCallback ( +pascal Boolean CrossPlatformFilterCallback ( AEDesc *theItem, void *info, void *callBackUD, @@ -751,7 +749,7 @@ int wxFileDialog::ShowModal() } } - mNavFilterUPP = NewNavObjectFilterProc( CrossPlatformFilterCallback ) ; + mNavFilterUPP = NewNavObjectFilterUPP( CrossPlatformFilterCallback ) ; if ( m_dialogStyle & wxMULTIPLE ) mNavOptions.dialogOptionFlags |= kNavAllowMultipleFiles ; else