X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6dabe332cb117a407db745cd75f1e3c32a3c7fc5..9b2a74693ea0ac096f5099caac4a5ead3268e07f:/include/wx/filefn.h diff --git a/include/wx/filefn.h b/include/wx/filefn.h index 8f5f8adac0..3351115ba7 100644 --- a/include/wx/filefn.h +++ b/include/wx/filefn.h @@ -278,13 +278,13 @@ enum wxFileKind // version of struct stat as well as a wide char stat function variant. // This was droped since OW 1.4 "for consistency across platforms". #if wxHAS_HUGE_FILES - #if wxUSE_UNICODE && defined(__WATCOMC__) && __WATCOMC__ < 1240 + #if wxUSE_UNICODE && wxONLY_WATCOM_EARLIER_THAN(1,4) #define wxStructStat struct _wstati64 #else #define wxStructStat struct _stati64 #endif #else - #if wxUSE_UNICODE && defined(__WATCOMC__) && __WATCOMC__ < 1240 + #if wxUSE_UNICODE && wxONLY_WATCOM_EARLIER_THAN(1,4) #define wxStructStat struct _wstat #else #define wxStructStat struct _stat @@ -436,7 +436,7 @@ WXDLLIMPEXP_BASE bool wxCopyFile(const wxString& file1, const wxString& file2, WXDLLIMPEXP_BASE bool wxRemoveFile(const wxString& file); // Rename file -WXDLLIMPEXP_BASE bool wxRenameFile(const wxString& file1, const wxString& file2); +WXDLLIMPEXP_BASE bool wxRenameFile(const wxString& file1, const wxString& file2, bool overwrite = true); // Get current working directory. #if WXWIN_COMPATIBILITY_2_6 @@ -463,15 +463,14 @@ WXDLLIMPEXP_BASE bool wxRmdir(const wxString& dir, int flags = 0); WXDLLIMPEXP_BASE wxFileKind wxGetFileKind(int fd); WXDLLIMPEXP_BASE wxFileKind wxGetFileKind(FILE *fp); +#if WXWIN_COMPATIBILITY_2_6 // compatibility defines, don't use in new code -// consider removal droping 2.4 compatibility -// #if WXWIN_COMPATIBILITY_2_4 wxDEPRECATED( inline bool wxPathExists(const wxChar *pszPathName) ); inline bool wxPathExists(const wxChar *pszPathName) { return wxDirExists(pszPathName); } -// #endif //WXWIN_COMPATIBILITY_2_4 +#endif //WXWIN_COMPATIBILITY_2_6 // ---------------------------------------------------------------------------- // separators in file names