From 8e062792cd085d4023e5917cff35957b247506cf Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 8 Jul 2022 12:46:27 +0100 Subject: [PATCH] Build fix for compiling against minizip. --- code/Common/ZipArchiveIOSystem.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/Common/ZipArchiveIOSystem.cpp b/code/Common/ZipArchiveIOSystem.cpp index e0c9883d2..a29380838 100644 --- a/code/Common/ZipArchiveIOSystem.cpp +++ b/code/Common/ZipArchiveIOSystem.cpp @@ -196,7 +196,9 @@ zlib_filefunc_def IOSystem2Unzip::get(IOSystem *pIOHandler) { zlib_filefunc_def mapping; mapping.zopen_file = (open_file_func)open; +#ifdef _UNZ_H mapping.zopendisk_file = (opendisk_file_func)opendisk; +#endif mapping.zread_file = (read_file_func)read; mapping.zwrite_file = (write_file_func)write; mapping.ztell_file = (tell_file_func)tell;