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
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);