r=cls, a=blizzard OS/2 only change - if filename passed in contains a drive letter, just use it
This commit is contained in:
Родитель
32b73e9541
Коммит
08bfb7d1df
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче