r=cls, a=blizzard
OS/2 only change - if filename passed in contains a drive letter, just use it
This commit is contained in:
mkaply%us.ibm.com 2001-01-27 15:37:46 +00:00
Родитель 32b73e9541
Коммит 08bfb7d1df
1 изменённых файлов: 7 добавлений и 0 удалений

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

@ -154,6 +154,13 @@ new_input_data(const char *filename, IncludePathEntry *include_path)
#if defined(XP_MAC) && defined(XPIDL_PLUGIN)
// on Mac, fopen knows how to find files.
inputfile = fopen(filename, "r");
#elif defined(XP_OS2)
// if filename is fully qualified (starts with driver letter), then
// just call fopen(); else, go with fopen_from_includes()
if( filename[1] == ':' )
inputfile = fopen(filename, "r");
else
inputfile = fopen_from_includes(filename, "r", include_path);
#else
inputfile = fopen_from_includes(filename, "r", include_path);
#endif