diff options
Diffstat (limited to 'zconf.h')
-rw-r--r-- | zconf.h | 66 |
1 files changed, 66 insertions, 0 deletions
@@ -0,0 +1,66 @@ | |||
1 | /* zconf.h -- configuration of the zlib compression library | ||
2 | * Copyright (C) 1995 Jean-loup Gailly. | ||
3 | * For conditions of distribution and use, see copyright notice in zlib.h | ||
4 | */ | ||
5 | |||
6 | /* $Id: zconf.h,v 1.7 1995/04/12 20:42:28 jloup Exp $ */ | ||
7 | |||
8 | #ifndef _ZCONF_H | ||
9 | #define _ZCONF_H | ||
10 | |||
11 | /* | ||
12 | The library does not install any signal handler. It is recommended to | ||
13 | add at least a handler for SIGSEGV when decompressing; the library checks | ||
14 | the consistency of the input data whenever possible but may go nuts | ||
15 | for some forms of corrupted input. | ||
16 | */ | ||
17 | |||
18 | /* | ||
19 | * Compile with -DMAXSEG_64K if the alloc function cannot allocate more | ||
20 | * than 64k bytes at a time (needed on systems with 16-bit int). | ||
21 | */ | ||
22 | #if defined(_GNUC__) && !defined(__32BIT__) | ||
23 | # define __32BIT__ | ||
24 | #endif | ||
25 | #if defined(__MSDOS__) && !defined(MSDOS) | ||
26 | # define MSDOS | ||
27 | #endif | ||
28 | #if defined(MSDOS) && !defined(__32BIT__) | ||
29 | # define MAXSEG_64K | ||
30 | #endif | ||
31 | |||
32 | #ifdef MAXSEG_64K | ||
33 | # define MAX_MEM_LEVEL 8 | ||
34 | #else | ||
35 | # define MAX_MEM_LEVEL 9 | ||
36 | #endif | ||
37 | |||
38 | /* Type declarations */ | ||
39 | |||
40 | #ifndef __P /* function prototypes */ | ||
41 | # if defined(__STDC__) || defined(MSDOS) | ||
42 | # define __P(args) args | ||
43 | # else | ||
44 | # define __P(args) () | ||
45 | # endif | ||
46 | #endif | ||
47 | |||
48 | #ifndef Byte | ||
49 | typedef unsigned char Byte; /* 8 bits */ | ||
50 | #endif | ||
51 | #ifndef uInt | ||
52 | typedef unsigned int uInt; /* may be 16 or 32 bits */ | ||
53 | #endif | ||
54 | #ifndef uLong | ||
55 | typedef unsigned long uLong; /* 32 bits or more */ | ||
56 | #endif | ||
57 | #ifndef voidp | ||
58 | # if defined(__STDC__) || defined(MSDOS) | ||
59 | typedef void *voidp; | ||
60 | # else | ||
61 | typedef Byte *voidp; | ||
62 | # endif | ||
63 | #endif | ||
64 | |||
65 | #endif /* _ZCONF_H */ | ||
66 | |||