| 1 |
/* |
| 2 |
* This file is a part of the zlib compression module for NSIS. |
| 3 |
* |
| 4 |
* Copyright and license information can be found below. |
| 5 |
* Modifications Copyright (C) 1999-2026 Nullsoft and Contributors |
| 6 |
* |
| 7 |
* The original zlib source code is available at |
| 8 |
* http://www.zlib.net/ |
| 9 |
* |
| 10 |
* This software is provided 'as-is', without any express or implied |
| 11 |
* warranty. |
| 12 |
* |
| 13 |
* Reviewed for Unicode support by Jim Park -- 08/27/2007 |
| 14 |
*/ |
| 15 |
|
| 16 |
/* zconf.h -- configuration of the zlib compression library |
| 17 |
* Copyright (C) 1995-1998 Jean-loup Gailly. |
| 18 |
* For conditions of distribution and use, see copyright notice in zlib.h |
| 19 |
*/ |
| 20 |
|
| 21 |
/* @(#) $Id: ZCONF.H,v 1.3 2007/01/13 17:28:23 kichik Exp $ */ |
| 22 |
|
| 23 |
#ifndef _ZCONF_H |
| 24 |
#define _ZCONF_H |
| 25 |
|
| 26 |
|
| 27 |
#define MAX_MEM_LEVEL 9 |
| 28 |
|
| 29 |
/* Maximum value for windowBits in deflateInit2 and inflateInit2. |
| 30 |
* WARNING: reducing MAX_WBITS makes minigzip unable to extract .gz files |
| 31 |
* created by gzip. (Files created by minigzip can still be extracted by |
| 32 |
* gzip.) |
| 33 |
*/ |
| 34 |
#ifndef MAX_WBITS |
| 35 |
# define MAX_WBITS 15 /* 32K LZ77 window */ |
| 36 |
#endif |
| 37 |
|
| 38 |
#define OF(args) args |
| 39 |
|
| 40 |
|
| 41 |
#ifndef ZEXPORT |
| 42 |
# define ZEXPORT |
| 43 |
#endif |
| 44 |
#ifndef ZEXPORTVA |
| 45 |
# define ZEXPORTVA |
| 46 |
#endif |
| 47 |
#ifndef ZEXTERN |
| 48 |
# define ZEXTERN extern |
| 49 |
#endif |
| 50 |
|
| 51 |
#ifndef FAR |
| 52 |
# define FAR |
| 53 |
#endif |
| 54 |
|
| 55 |
typedef unsigned char Byte; /* 8 bits */ |
| 56 |
typedef unsigned int uInt; /* 16 bits or more */ |
| 57 |
typedef unsigned long uLong; /* 32 bits or more */ |
| 58 |
|
| 59 |
typedef Byte FAR Bytef; |
| 60 |
typedef char FAR charf; |
| 61 |
typedef int FAR intf; |
| 62 |
typedef uInt FAR uIntf; |
| 63 |
typedef uLong FAR uLongf; |
| 64 |
|
| 65 |
typedef void FAR *voidpf; |
| 66 |
typedef void *voidp; |
| 67 |
|
| 68 |
#ifndef z_off_t |
| 69 |
# define z_off_t long |
| 70 |
#endif |
| 71 |
|
| 72 |
|
| 73 |
#endif /* _ZCONF_H */ |