Skip to content

Commit 74abbd0

Browse files
committed
Fix compilation when USE_ZLIB is false
create a dummy gzFile type
1 parent aa1b031 commit 74abbd0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/core/src/persistence.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@
6767
# define _FILE_OFFSET_BITS 0
6868
# endif
6969
# include <zlib.h>
70+
#else
71+
typedef void* gzFile;
7072
#endif
7173

7274
/****************************************************************************************\

0 commit comments

Comments
 (0)