fix build error with zlib-ng compat

when build zlib-ng with zlib-compat and ZLIB_COMPAT-ON,
error like this:
/home/minizip/minizip-2.9.1/mz_crypt.c:19:14: fatal error:
-ng.h: No
such file or directory
include "zlib-ng.h"
/home/minizip/minizip-2.9.1/mz_strm_zlib.c:19:12: fatal error:
zlib-ng.h: No such file or directory
include "zlib-ng.h"

Signed-off-by: Chunmei Xu <xuchunmei@linux.alibaba.com>
This commit is contained in:
Chunmei Xu 2020-02-12 18:16:10 +08:00
parent 5be3472def
commit 5fb912b825
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@
#if defined(HAVE_ZLIB)
# include "zlib.h"
# if defined(ZLIBNG_VERNUM)
# if defined(ZLIBNG_VERNUM) && !defined(ZLIB_COMPAT)
# include "zlib-ng.h"
# endif
#elif defined(HAVE_LZMA)

View File

@ -15,7 +15,7 @@
#include "mz_strm_zlib.h"
#include "zlib.h"
#if defined(ZLIBNG_VERNUM)
#if defined(ZLIBNG_VERNUM) && !defined(ZLIB_COMPAT)
# include "zlib-ng.h"
#endif