diff --git a/netwerk/base/src/nsStdURL.cpp b/netwerk/base/src/nsStdURL.cpp index 29e37b53e8f6..a29bc5291fa8 100644 --- a/netwerk/base/src/nsStdURL.cpp +++ b/netwerk/base/src/nsStdURL.cpp @@ -39,8 +39,11 @@ #include "nsEscape.h" #include "nsNetCID.h" -#if defined(XP_PC) && !defined(XP_OS2) +#if defined(XP_WIN) #include +#endif + +#if defined(XP_WIN) || defined(XP_OS2) #include #endif @@ -1018,7 +1021,7 @@ nsStdURL::GetFile(nsIFile * *aFile) rv = AppendFileName(path,mFileBaseName,mFileExtension,ESCAPED); -#ifdef XP_PC +#if defined(XP_WIN) || defined(XP_OS2) if (path.CharAt(2) == '|') path.SetCharAt(':', 2); @@ -1035,7 +1038,7 @@ nsStdURL::GetFile(nsIFile * *aFile) path.Insert(host, 0); } } - + if ((path.CharAt(0) == '/' && path.CharAt(1) == '/')) { // unc path #ifdef DEBUG_dougt