view src/plugins/zlib/istream-bzlib.c @ 9575:0a00dcc4f0ea HEAD

lib-storage: Allow shared namespace prefix to use %variable modifiers.
author Timo Sirainen <tss@iki.fi>
date Wed, 26 May 2010 17:07:51 +0100
parents 00cd9aacd03c
children
line wrap: on
line source

/* Copyright (c) 2005-2010 Dovecot authors, see the included COPYING file */

#include "lib.h"
#include "istream-internal.h"
#include "istream-zlib.h"

#ifdef HAVE_BZLIB
#include <stdio.h>
#include <bzlib.h>

#define BZLIB_INCLUDE

#define gzFile BZFILE
#define gzdopen BZ2_bzdopen
#define gzclose BZ2_bzclose
#define gzread BZ2_bzread
#define gzseek BZ2_bzseek
#define gzerror BZ2_bzerror
#define Z_ERRNO BZ_IO_ERROR

#define i_stream_create_zlib i_stream_create_bzlib
#include "istream-zlib.c"
#endif