Build fix for wxUSE_FILE=0.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33630 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba 2005-04-15 16:49:36 +00:00
parent 452aa069dc
commit 9843873049

View File

@ -1016,7 +1016,7 @@ wxCopyFile (const wxString& file1, const wxString& file2, bool overwrite)
#elif defined(__PALMOS__) #elif defined(__PALMOS__)
// TODO with http://www.palmos.com/dev/support/docs/protein_books/Memory_Databases_Files/ // TODO with http://www.palmos.com/dev/support/docs/protein_books/Memory_Databases_Files/
return false; return false;
#else // !Win32 #elif wxUSE_FILE // !Win32
wxStructStat fbuf; wxStructStat fbuf;
// get permissions of file1 // get permissions of file1
@ -1087,6 +1087,15 @@ wxCopyFile (const wxString& file1, const wxString& file2, bool overwrite)
return false; return false;
} }
#endif // OS/2 || Mac #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__ #endif // __WXMSW__ && __WIN32__
return true; return true;
@ -1256,6 +1265,8 @@ wxChar *wxGetTempFileName(const wxString& prefix, wxChar *buf)
return buf; return buf;
#else #else
wxUnusedVar(prefix);
wxUnusedVar(buf);
// wxFileName::CreateTempFileName needs wxFile class enabled // wxFileName::CreateTempFileName needs wxFile class enabled
return NULL; return NULL;
#endif #endif