zconf.h 1.41 KB
Newer Older
1 2 3 4 5 6 7 8 9 10
/* zconf.h -- configuration of the zlib compression library
 * Copyright (C) 1995-2010 Jean-loup Gailly.
 * For conditions of distribution and use, see copyright notice in zlib.h
 */

/* @(#) $Id$ */

#ifndef ZCONF_H
#define ZCONF_H

11
#include "../../src/common.h"
12

13 14 15 16
/* Jeez, don't complain about non-prototype
 * forms, we didn't write zlib */
#if defined(_MSC_VER)
#	pragma warning( disable : 4131 )
17
#	pragma warning( disable : 4142 ) /* benign redefinition of type */
18 19 20
#endif

/* Maximum value for memLevel in deflateInit2 */
21
#define MAX_MEM_LEVEL 9
22 23 24 25 26 27

/* Maximum value for windowBits in deflateInit2 and inflateInit2.
 * WARNING: reducing MAX_WBITS makes minigzip unable to extract .gz files
 * created by gzip. (Files created by minigzip can still be extracted by
 * gzip.)
 */
28
#define MAX_WBITS   15 /* 32K LZ77 window */
29

30 31 32
#define ZEXTERN extern
#define ZEXPORT
#define ZEXPORTVA
33
#ifndef FAR
34
#	define FAR
35
#endif
36
#define OF(args)  args
37
#define Z_ARG(args) args
38 39 40 41

typedef unsigned char  Byte;  /* 8 bits */
typedef unsigned int   uInt;  /* 16 bits or more */
typedef unsigned long  uLong; /* 32 bits or more */
42
typedef unsigned long z_crc_t;
43

44
typedef Byte  FAR Bytef;
45 46 47 48 49
typedef char  FAR charf;
typedef int   FAR intf;
typedef uInt  FAR uIntf;
typedef uLong FAR uLongf;

50 51 52
typedef void const *voidpc;
typedef void FAR   *voidpf;
typedef void       *voidp;
53

54 55
#define z_off_t git_off_t
#define z_off64_t z_off_t
56
#define z_const const
57 58

#endif /* ZCONF_H */