From 9ed6834c72971998fce2ea3319b76184969ad93c Mon Sep 17 00:00:00 2001 From: Christophe Giboudeaux Date: Wed, 12 Jan 2022 10:35:34 +0100 Subject: [PATCH] Fix build with zlib --- code/Common/ZipArchiveIOSystem.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/Common/ZipArchiveIOSystem.cpp b/code/Common/ZipArchiveIOSystem.cpp index 9870fa9d0..685cc8b5d 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 ZOPENDISK64 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; -- 2.34.1