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
49typedef unsigned char Byte; /* 8 bits */
50typedef unsigned int uInt; /* 16 bits or more */
51typedef unsigned long uLong; /* 32 bits or more */
52typedef Byte Bytef;
53typedef char charf;
54typedef int intf;
55typedef uInt uIntf;
56typedef uLong uLongf;
57typedef void const *voidpc;
58typedef void *voidpf;
59typedef void *voidp;
60
61typedef UINTN z_size_t;
62typedef 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 */
UINT32 z_crc_t
Definition zconf.h:62
int intf
Definition zconf.h:54
uInt uIntf
Definition zconf.h:55
void const * voidpc
Definition zconf.h:57
char charf
Definition zconf.h:53
unsigned int uInt
Definition zconf.h:50
Byte Bytef
Definition zconf.h:52
void * voidpf
Definition zconf.h:58
unsigned long uLong
Definition zconf.h:51
uLong uLongf
Definition zconf.h:56
UINTN z_size_t
Definition zconf.h:61
unsigned char Byte
Definition zconf.h:49
void * voidp
Definition zconf.h:59