#include "wx/filedlg.h"
#include "wx/intl.h"
-#if !defined(__UNIX__)
+#ifndef __DARWIN__
#include "PLStringFuncs.h"
#endif
// begin wxmac
-#if defined(__UNIX__)
- #include <Carbon/Carbon.h>
-#else
+#ifndef __DARWIN__
#include <Navigation.h>
#endif
-#ifndef __UNIX__
- #include "morefile.h"
- #include "moreextr.h"
- #include "fullpath.h"
- #include "fspcompa.h"
- #include "PLStringFuncs.h"
+#ifndef __DARWIN__
+ #include "MoreFiles.h"
+ #include "MoreFilesExtras.h"
#endif
extern bool gUseNavServices ;
}
-Boolean CrossPlatformFilterCallback (
+pascal Boolean CrossPlatformFilterCallback (
AEDesc *theItem,
void *info,
void *callBackUD,
if (theItem->descriptorType == typeFSS && !theInfo->isFolder)
{
FSSpec spec;
- memcpy( &spec , *theItem->dataHandle , sizeof(FSSpec) ) ;
+#if TARGET_CARBON
+ ::AEGetDescData(theItem, &spec, sizeof(FSSpec) ) ;
+#else
+ memcpy( &spec , (*theItem->dataHandle) , sizeof(FSSpec) ) ;
+#endif
display = CheckFile( spec.name , theInfo->fileAndFolder.fileInfo.finderInfo.fdType , data ) ;
}
}
}
}
- mNavFilterUPP = NewNavObjectFilterProc( CrossPlatformFilterCallback ) ;
+ mNavFilterUPP = NewNavObjectFilterUPP( CrossPlatformFilterCallback ) ;
if ( m_dialogStyle & wxMULTIPLE )
mNavOptions.dialogOptionFlags |= kNavAllowMultipleFiles ;
else