From da4912c3323b2ff652bfc3e62f8b07aa93459df8 Mon Sep 17 00:00:00 2001 From: Ove Kaaven Date: Sat, 8 Apr 2000 15:48:23 +0000 Subject: [PATCH] Fallback implementation of wxRemove and wxRename git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7090 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/wxchar.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/common/wxchar.cpp b/src/common/wxchar.cpp index c2deb9b203..ea538f5fc0 100644 --- a/src/common/wxchar.cpp +++ b/src/common/wxchar.cpp @@ -354,6 +354,16 @@ WXDLLEXPORT FILE * wxFreopen(const wxChar *path, const wxChar *mode, FILE *strea return freopen(wxConvFile.cWX2MB(path), wxConvLibc.cWX2MB(mode), stream); } +WXDLLEXPORT int wxRemove(const wxChar *path) +{ + return remove(wxConvFile.cWX2MB(path)); +} + +WXDLLEXPORT int wxRename(const wxChar *oldpath, const wxChar *newpath) +{ + return rename(wxConvFile.cWX2MB(oldpath), wxConvFile.cWX2MB(newpath)); +} + int WXDLLEXPORT wxPrintf(const wxChar *fmt, ...) { va_list argptr;