diff --git a/include/wx/wxchar.h b/include/wx/wxchar.h index cf639c0437..1d49653fd4 100644 --- a/include/wx/wxchar.h +++ b/include/wx/wxchar.h @@ -364,10 +364,7 @@ #ifdef __WXWINCE__ /* carefully: wxRemove() must return 0 on success while DeleteFile() returns 0 on error, so don't just define one as the other */ - inline int wxRemove(const wxChar *path) - { - return ::DeleteFile(path) == 0; - } + int wxRemove(const wxChar *path); #else #define wxRemove _tremove #define wxRename _trename diff --git a/src/common/wxchar.cpp b/src/common/wxchar.cpp index 9d07b1c3fe..2e186082a2 100644 --- a/src/common/wxchar.cpp +++ b/src/common/wxchar.cpp @@ -1600,3 +1600,11 @@ void *calloc( size_t num, size_t size ) #endif // __WXWINCE__ <= 211 +#ifdef __WXWINCE__ + +int wxRemove(const wxChar *path) +{ + return ::DeleteFile(path) == 0; +} + +#endif