From: Włodzimierz Skiba Date: Fri, 15 Apr 2005 16:49:36 +0000 (+0000) Subject: Build fix for wxUSE_FILE=0. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/98438730495809c7ebde7edee634e72265d1fe81 Build fix for wxUSE_FILE=0. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33630 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/filefn.cpp b/src/common/filefn.cpp index 37df0c74db..e3be7dfb7b 100644 --- a/src/common/filefn.cpp +++ b/src/common/filefn.cpp @@ -1016,7 +1016,7 @@ wxCopyFile (const wxString& file1, const wxString& file2, bool overwrite) #elif defined(__PALMOS__) // TODO with http://www.palmos.com/dev/support/docs/protein_books/Memory_Databases_Files/ return false; -#else // !Win32 +#elif wxUSE_FILE // !Win32 wxStructStat fbuf; // get permissions of file1 @@ -1087,6 +1087,15 @@ wxCopyFile (const wxString& file1, const wxString& file2, bool overwrite) return false; } #endif // OS/2 || Mac + +#else // !Win32 && ! wxUSE_FILE + + // impossible to simulate with wxWidgets API + wxUnusedVar(file1); + wxUnusedVar(file2); + wxUnusedVar(overwrite); + return false; + #endif // __WXMSW__ && __WIN32__ return true; @@ -1256,6 +1265,8 @@ wxChar *wxGetTempFileName(const wxString& prefix, wxChar *buf) return buf; #else + wxUnusedVar(prefix); + wxUnusedVar(buf); // wxFileName::CreateTempFileName needs wxFile class enabled return NULL; #endif