Similar to the use for the checksum.
I know that zlib is required in principle, but i don't have it
in one of my test building environment, and it is easier to just
disable it.
#include <iostream>
+#ifdef ZLIB_FOUND
#include <zlib.h>
+#endif
#ifdef Q_OS_WIN
#include <io.h> // for stdout
static bool compressLog(const QString &originalName, const QString &targetName)
{
+#ifdef ZLIB_FOUND
QFile original(originalName);
if (!original.open(QIODevice::ReadOnly))
return false;
}
gzclose(compressed);
return true;
+#else
+ return false;
+#endif
}
void Logger::enterNextLogFile()