return result;
}
int res;
-#ifdef USE_ZLIB
+#ifdef APT_USE_ZLIB
if (d->gz)
res = gzseek(d->gz,To,SEEK_SET);
else
bool FileFd::Skip(unsigned long long Over)
{
int res;
-#ifdef USE_ZLIB
+#ifdef APT_USE_ZLIB
if (d->gz != NULL)
res = gzseek(d->gz,Over,SEEK_CUR);
else
unsigned long long FileFd::Tell()
{
off_t Res;
-#ifdef USE_ZLIB
+#ifdef APT_USE_ZLIB
if (d->gz != NULL)
Res = gztell(d->gz);
else
} while(read != 0);
Seek(0);
}
-#ifdef USE_ZLIB
+#ifdef APT_USE_ZLIB
// only check gzsize if we are actually a gzip file, just checking for
// "gz" is not sufficient as uncompressed files could be opened with
// gzopen in "direct" mode as well
bool Res = true;
if ((Flags & AutoClose) == AutoClose)
{
-#ifdef USE_ZLIB
+#ifdef APT_USE_ZLIB
if (d != NULL && d->gz != NULL) {
int const e = gzclose(d->gz);
// gzdopen() on empty files always fails with "buffer error" here, ignore that