mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-30 08:00:51 +00:00
fix Qgets for when zlib isn't available
This commit is contained in:
parent
7b5535cb8f
commit
7f3d5164e6
1 changed files with 3 additions and 2 deletions
|
@ -356,12 +356,13 @@ Qgets (QFile *file, char *buf, int count)
|
|||
}
|
||||
if (file->file)
|
||||
buf = fgets (buf, count, file->file);
|
||||
else {
|
||||
#ifdef HAVE_ZLIB
|
||||
else
|
||||
buf = gzgets (file->gzfile, buf, count);
|
||||
#else
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
return buf ? ret : 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue