X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c2ff79b17b1f3e8117e23179340cf69a85b5fe61..6627a4b0497f89221ea9f7848990f8830cf81b7e:/src/common/filefn.cpp diff --git a/src/common/filefn.cpp b/src/common/filefn.cpp index c809581d8d..7461ca1dd4 100644 --- a/src/common/filefn.cpp +++ b/src/common/filefn.cpp @@ -1035,7 +1035,7 @@ bool wxMkdir(const wxString& dir, int perm) #if (!(defined(__WXMSW__) || defined(__WXPM__))) || (defined(__GNUWIN32__) && !defined(__MINGW32__)) || defined(__WXWINE__) if ( mkdir(wxFNCONV(dirname), perm) != 0 ) #else // MSW and OS/2 - if ( mkdir((char*)wxFNCONV(dirname)) != 0 ) + if ( mkdir(FNSTRINGCAST wxFNCONV(dirname)) != 0 ) #endif // !MSW/MSW { wxLogSysError(_("Directory '%s' couldn't be created"), dirname); @@ -1503,7 +1503,7 @@ wxString wxGetCwd() bool wxSetWorkingDirectory(const wxString& d) { #if defined( __UNIX__ ) || defined( __WXMAC__ ) || defined(__WXPM__) - return (chdir((char*)d.fn_str()) == 0); + return (chdir(FNSTRINGCAST d.fn_str()) == 0); #elif defined(__WINDOWS__) #ifdef __WIN32__