WinCE doesn't declare DeleteFile at the point wxRemove is defined,
so put it in implementation file. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34415 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -364,10 +364,7 @@
|
|||||||
#ifdef __WXWINCE__
|
#ifdef __WXWINCE__
|
||||||
/* carefully: wxRemove() must return 0 on success while DeleteFile()
|
/* carefully: wxRemove() must return 0 on success while DeleteFile()
|
||||||
returns 0 on error, so don't just define one as the other */
|
returns 0 on error, so don't just define one as the other */
|
||||||
inline int wxRemove(const wxChar *path)
|
int wxRemove(const wxChar *path);
|
||||||
{
|
|
||||||
return ::DeleteFile(path) == 0;
|
|
||||||
}
|
|
||||||
#else
|
#else
|
||||||
#define wxRemove _tremove
|
#define wxRemove _tremove
|
||||||
#define wxRename _trename
|
#define wxRename _trename
|
||||||
|
@@ -1600,3 +1600,11 @@ void *calloc( size_t num, size_t size )
|
|||||||
|
|
||||||
#endif // __WXWINCE__ <= 211
|
#endif // __WXWINCE__ <= 211
|
||||||
|
|
||||||
|
#ifdef __WXWINCE__
|
||||||
|
|
||||||
|
int wxRemove(const wxChar *path)
|
||||||
|
{
|
||||||
|
return ::DeleteFile(path) == 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
Reference in New Issue
Block a user