X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fe35d097d6618b4a15cafcfc40b33b757d620e49..4eb1fe9da6dbf2a82876547b6f69836e086f22e7:/src/mac/filedlg.cpp diff --git a/src/mac/filedlg.cpp b/src/mac/filedlg.cpp index b1b059f05c..6ca66d390f 100644 --- a/src/mac/filedlg.cpp +++ b/src/mac/filedlg.cpp @@ -31,9 +31,7 @@ IMPLEMENT_CLASS(wxFileDialog, wxDialog) // begin wxmac -#ifndef __DARWIN__ - #include -#endif +#include #include "MoreFiles.h" #include "MoreFilesExtras.h" @@ -95,7 +93,7 @@ NavEventProc( } } -char * gfilters[] = +const char * gfilters[] = { "*.TXT" , "*.TIF" , @@ -301,6 +299,8 @@ void MakeUserDataRec(OpenUserDataRec *myData , const wxString& filter ) } } + +#ifndef __DARWIN__ void ExtendedOpenFile( ConstStr255Param message , ConstStr255Param path , const char *filter , FileFilterYDUPP fileFilter, StandardFileReply *theSFR ) { Point thePt; @@ -405,6 +405,7 @@ void ExtendedOpenFile( ConstStr255Param message , ConstStr255Param path , const } } } +#endif static Boolean CheckFile( ConstStr255Param name , OSType type , OpenUserDataRecPtr data) { @@ -446,6 +447,7 @@ static Boolean CheckFile( ConstStr255Param name , OSType type , OpenUserDataRecP return true ; } +#ifndef __DARWIN__ static pascal Boolean CrossPlatformFileFilter(CInfoPBPtr myCInfoPBPtr, void *dataPtr) { OpenUserDataRecPtr data = (OpenUserDataRecPtr) dataPtr ; @@ -470,6 +472,7 @@ static pascal Boolean CrossPlatformFileFilter(CInfoPBPtr myCInfoPBPtr, void *dat return false ; } +#endif // end wxmac