X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f387b80e0e3f0b405df308a8165893f4794c8329..ff1bd293e1f57ceea2888fef99b6fb8c5e7f99e0:/src/mac/carbon/filedlg.cpp diff --git a/src/mac/carbon/filedlg.cpp b/src/mac/carbon/filedlg.cpp index cd3767ac7d..1eee666aae 100644 --- a/src/mac/carbon/filedlg.cpp +++ b/src/mac/carbon/filedlg.cpp @@ -11,6 +11,8 @@ #include "wx/wxprec.h" +#if wxUSE_FILEDLG + #include "wx/filedlg.h" #ifndef WX_PRECOMP @@ -328,7 +330,7 @@ int wxFileDialog::ShowModal() } } - if (HasFlag(wxFD_SAVE)) + if (HasFdFlag(wxFD_SAVE)) { myData.saveMode = true; @@ -401,7 +403,7 @@ int wxFileDialog::ShowModal() if (err != noErr) break; - if (HasFlag(wxFD_SAVE)) + if (HasFdFlag(wxFD_SAVE)) thePath = wxMacFSRefToPath( &theFSRef, navReply.saveFileName ); else thePath = wxMacFSRefToPath( &theFSRef ); @@ -428,3 +430,6 @@ int wxFileDialog::ShowModal() return (err == noErr) ? wxID_OK : wxID_CANCEL; } + +#endif // wxUSE_FILEDLG +