From 4f727d46b30754f8a5099726a41b19627ce89092 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Sat, 1 Mar 2003 21:17:34 +0000 Subject: [PATCH] applied fix to MkDir for mac git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@19409 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/filename.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/common/filename.cpp b/src/common/filename.cpp index f56ec3d5ef..61e1d1bfbe 100644 --- a/src/common/filename.cpp +++ b/src/common/filename.cpp @@ -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];