])])
if test x$ac_zlib != xno; then
- AC_DEFINE([HAVE_LIBZ], 1, [Define if ZLIB compression is enabled.])
+ AC_DEFINE([HAVE_ZLIB], 1, [Define if ZLIB compression is enabled.])
need_ltlibdl=yes
fi
AM_CONDITIONAL(HAVE_ZLIB, test "$ac_zlib" != "no")
#define ZSTD_LIBRARY_SONAME "none"
#endif
-#ifdef HAVE_LIBZ
+#ifdef HAVE_ZLIB
#include "dlwrap/zlib.h"
#endif
#include "dlwrap/zstd.h"
#endif
-#ifdef HAVE_LIBZ
+#ifdef HAVE_ZLIB
static void zlib_deinit(void)
{
gnutls_zlib_unload_library();
return gnutls_assert_val(GNUTLS_E_INTERNAL_ERROR);
return 0;
}
-#endif /* HAVE_LIBZ */
+#endif /* HAVE_ZLIB */
#ifdef HAVE_LIBBROTLI
static comp_entry comp_algs[] = {
{ GNUTLS_COMP_NULL, "NULL", NULL, NULL },
-#ifdef HAVE_LIBZ
+#ifdef HAVE_ZLIB
{ GNUTLS_COMP_ZLIB, "ZLIB", zlib_init, zlib_deinit },
#endif
#ifdef HAVE_LIBBROTLI
};
static const gnutls_compression_method_t alg_list[] = { GNUTLS_COMP_NULL,
-#ifdef HAVE_LIBZ
+#ifdef HAVE_ZLIB
GNUTLS_COMP_ZLIB,
#endif
#ifdef HAVE_LIBBROTLI
size_t _gnutls_compress_bound(gnutls_compression_method_t alg, size_t src_len)
{
switch (alg) {
-#ifdef HAVE_LIBZ
+#ifdef HAVE_ZLIB
case GNUTLS_COMP_ZLIB:
return GNUTLS_ZLIB_FUNC(compressBound)(src_len);
#endif
int ret = GNUTLS_E_COMPRESSION_FAILED;
switch (alg) {
-#ifdef HAVE_LIBZ
+#ifdef HAVE_ZLIB
case GNUTLS_COMP_ZLIB: {
int err;
uLongf comp_len = dst_len;
int ret = GNUTLS_E_DECOMPRESSION_FAILED;
switch (alg) {
-#ifdef HAVE_LIBZ
+#ifdef HAVE_ZLIB
case GNUTLS_COMP_ZLIB: {
int err;
uLongf plain_len = dst_len;
#include <stdio.h>
#include <stdlib.h>
-#if defined(_WIN32) || !defined(HAVE_LIBZ) || !defined(HAVE_LIBBROTLI) || \
+#if defined(_WIN32) || !defined(HAVE_ZLIB) || !defined(HAVE_LIBBROTLI) || \
!defined(HAVE_LIBZSTD)
int main(int argc, char **argv)
#include <stdio.h>
#include <stdlib.h>
-#if defined(_WIN32) || !defined(HAVE_LIBZ) || !defined(HAVE_LIBBROTLI) || \
+#if defined(_WIN32) || !defined(HAVE_ZLIB) || !defined(HAVE_LIBBROTLI) || \
!defined(HAVE_LIBZSTD)
int main(int argc, char **argv)
#include <stdio.h>
#include <stdlib.h>
-#if defined(_WIN32) || !defined(HAVE_LIBZ) || !defined(HAVE_LIBBROTLI) || \
+#if defined(_WIN32) || !defined(HAVE_ZLIB) || !defined(HAVE_LIBBROTLI) || \
!defined(HAVE_LIBZSTD)
int main(int argc, char **argv)