]> git.saurik.com Git - wxWidgets.git/commitdiff
applied fix to MkDir for mac
authorStefan Csomor <csomor@advancedconcepts.ch>
Sat, 1 Mar 2003 21:09:23 +0000 (21:09 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Sat, 1 Mar 2003 21:09:23 +0000 (21:09 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19408 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/filename.cpp

index 88f138454e0c7f29a08a90874bf32d4058c1a569..6a8814158c8df56398b65c091116c9f8cc158857 100644 (file)
@@ -776,7 +776,14 @@ bool wxFileName::Mkdir( const wxString& dir, int perm, int flags )
         size_t count = dirs.GetCount();
         for ( size_t i = 0; i < count; i++ )
         {
-            if ( i > 0 || filename.IsAbsolute() )
+            if ( i > 0 || 
+#if defined(__WXMAC__) && !defined(__DARWIN__)
+                       // relative pathnames are exactely the other way round under mac...
+               !filename.IsAbsolute() 
+#else
+               filename.IsAbsolute() 
+#endif
+            )
                 currPath += wxFILE_SEP_PATH;
             currPath += dirs[i];