]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/filesys.cpp
tried to clean strdup() mess: we now have wxStrdup[AW] which should be always available
[wxWidgets.git] / src / common / filesys.cpp
index 5ed5a520d03fb2ba2a3d3310b5b60b2ddac5ca88..781dc5c909347397bbc6caee9e75c935517e3b6b 100644 (file)
@@ -431,7 +431,7 @@ wxFileName wxFileSystem::URLToFileName(const wxString& url)
                path = path.Mid(7);
        }
 
-#ifndef __UNIX__
+#ifdef __WXMSW__
        // file urls either start with a forward slash (local harddisk),
     // otherwise they have a servername/sharename notation,
     // which only exists on msw and corresponds to a unc
@@ -459,8 +459,8 @@ wxString wxFileSystem::FileNameToURL(const wxFileName& filename)
     fn.Normalize(wxPATH_NORM_DOTS | wxPATH_NORM_TILDE | wxPATH_NORM_ABSOLUTE);
     wxString url = fn.GetFullPath(wxPATH_NATIVE);
 
-#ifdef __WXMSW__
-    // unc notation
+#ifndef __UNIX__
+    // unc notation, wxMSW
     if ( url.Find(wxT("\\\\")) == 0 ) 
     {
         url = url.Mid(2);