Making _getdrive work on OS/2
This commit is contained in:
mkaply%us.ibm.com 2001-05-03 22:03:57 +00:00
Родитель 02ae316af6
Коммит 6ef172f0ed
1 изменённых файлов: 6 добавлений и 3 удалений

Просмотреть файл

@ -39,8 +39,11 @@
#include "nsEscape.h"
#include "nsNetCID.h"
#if defined(XP_PC) && !defined(XP_OS2)
#if defined(XP_WIN)
#include <windows.h>
#endif
#if defined(XP_WIN) || defined(XP_OS2)
#include <direct.h>
#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