use HAVE_* macros for dependencies

This commit is contained in:
nillerusr
2022-08-19 23:19:53 +03:00
parent 0d48bf354a
commit c909de8faf
8 changed files with 81 additions and 24 deletions
+4
View File
@@ -713,6 +713,7 @@ static bool CreateTempFilename( TempFilename_t &info, const char *filenameBase,
// Gzip Filename to Filename.gz.
static bool gzip_file_compress( const CUtlString &Filename )
{
#if HAVE_ZLIB
bool bRet = false;
// Try to find a unique temp filename.
@@ -758,6 +759,9 @@ static bool gzip_file_compress( const CUtlString &Filename )
}
return bRet;
#else
return false;
#endif
}
static void FixupInvalidPathChars( char *filename )