OpenCore
1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
zconf.h
Go to the documentation of this file.
1
/* zconf.h -- configuration of the zlib compression library
2
* Copyright (C) 1995-2016 Jean-loup Gailly, Mark Adler
3
* For conditions of distribution and use, see copyright notice in zlib.h
4
*/
5
6
/* @(#) $Id$ */
7
8
#ifndef ZCONF_H
9
#define ZCONF_H
10
11
#include <Library/BaseMemoryLib.h>
12
13
//
14
// EDIT (Download-Fritz): Disable MSVC warnings preventing compilation.
15
// Include stddef.h for its wchar_t definition.
16
//
17
#if defined(_MSC_VER)
18
#include <stddef.h>
19
#pragma warning ( disable : 4131 )
20
#pragma warning ( disable : 4244 )
21
#endif
22
23
#define NO_GZIP 1
24
25
/* Maximum value for memLevel in deflateInit2 */
26
#define MAX_MEM_LEVEL 9
27
28
/* Maximum value for windowBits in deflateInit2 and inflateInit2.
29
* WARNING: reducing MAX_WBITS makes minigzip unable to extract .gz files
30
* created by gzip. (Files created by minigzip can still be extracted by
31
* gzip.)
32
*/
33
#define MAX_WBITS 15
/* 32K LZ77 window */
34
35
#define Z_LARGE64 1
36
37
/* Type declarations */
38
39
#define OF(args) args
40
#define Z_ARG(args) args
/* function prototypes for stdarg */
41
42
#define ZEXTERN extern
43
#define ZEXPORT
44
#define ZEXPORTVA
45
#define FAR
46
47
#define z_const const
48
49
typedef
unsigned
char
Byte
;
/* 8 bits */
50
typedef
unsigned
int
uInt
;
/* 16 bits or more */
51
typedef
unsigned
long
uLong
;
/* 32 bits or more */
52
typedef
Byte
Bytef
;
53
typedef
char
charf
;
54
typedef
int
intf
;
55
typedef
uInt
uIntf
;
56
typedef
uLong
uLongf
;
57
typedef
void
const
*
voidpc
;
58
typedef
void
*
voidpf
;
59
typedef
void
*
voidp
;
60
61
typedef
UINTN
z_size_t
;
62
typedef
UINT32
z_crc_t
;
63
#define z_off_t INTN
64
#define z_off64_t INTN
65
#define Z_U4 UINT32
66
#define Z_U8 UINT64
67
68
#ifdef MIN
69
#undef MIN
70
#endif
71
72
#ifdef _WIN32
73
#undef _WIN32
74
#endif
75
76
#ifdef _WIN64
77
#undef _WIN64
78
#endif
79
80
#endif
/* ZCONF_H */
z_crc_t
UINT32 z_crc_t
Definition
zconf.h:62
intf
int intf
Definition
zconf.h:54
uIntf
uInt uIntf
Definition
zconf.h:55
voidpc
void const * voidpc
Definition
zconf.h:57
charf
char charf
Definition
zconf.h:53
uInt
unsigned int uInt
Definition
zconf.h:50
Bytef
Byte Bytef
Definition
zconf.h:52
voidpf
void * voidpf
Definition
zconf.h:58
uLong
unsigned long uLong
Definition
zconf.h:51
uLongf
uLong uLongf
Definition
zconf.h:56
z_size_t
UINTN z_size_t
Definition
zconf.h:61
Byte
unsigned char Byte
Definition
zconf.h:49
voidp
void * voidp
Definition
zconf.h:59
Library
OcCompressionLib
zlib
zconf.h
Generated by
1.12.0