]> git.saurik.com Git - wxWidgets.git/commitdiff
Hmm, apparently had to add FNSTRINGCAST elsewhere in the file too
authorOve Kaaven <ovek@arcticnet.no>
Tue, 3 Aug 1999 13:05:19 +0000 (13:05 +0000)
committerOve Kaaven <ovek@arcticnet.no>
Tue, 3 Aug 1999 13:05:19 +0000 (13:05 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3251 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/filefn.cpp

index d450c9aae81a08fbfcec699dd2f147407ed4a1c4..7461ca1dd46ec5a3a04b260c497afd56f213e256 100644 (file)
@@ -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__