misc/winutils/include/zconf.h
author Wuzzy <Wuzzy2@mail.ru>
Sat, 28 Jul 2018 13:15:59 +0200
changeset 13567 8f9b84d6991d
parent 7812 00696c1450da
permissions -rw-r--r--
Fix DrawHLinesExplosions setting invalid map pixels if called at wrap world edge This caused an errror message after the game when using hammer or pickhammer at wrap world edge.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
7812
00696c1450da enable png support under win32
koda
parents:
diff changeset
     1
/* zconf.h -- configuration of the zlib compression library
00696c1450da enable png support under win32
koda
parents:
diff changeset
     2
 * Copyright (C) 1995-2010 Jean-loup Gailly.
00696c1450da enable png support under win32
koda
parents:
diff changeset
     3
 * For conditions of distribution and use, see copyright notice in zlib.h
00696c1450da enable png support under win32
koda
parents:
diff changeset
     4
 */
00696c1450da enable png support under win32
koda
parents:
diff changeset
     5
00696c1450da enable png support under win32
koda
parents:
diff changeset
     6
/* @(#) $Id$ */
00696c1450da enable png support under win32
koda
parents:
diff changeset
     7
00696c1450da enable png support under win32
koda
parents:
diff changeset
     8
#ifndef ZCONF_H
00696c1450da enable png support under win32
koda
parents:
diff changeset
     9
#define ZCONF_H
00696c1450da enable png support under win32
koda
parents:
diff changeset
    10
00696c1450da enable png support under win32
koda
parents:
diff changeset
    11
/*
00696c1450da enable png support under win32
koda
parents:
diff changeset
    12
 * If you *really* need a unique prefix for all types and library functions,
00696c1450da enable png support under win32
koda
parents:
diff changeset
    13
 * compile with -DZ_PREFIX. The "standard" zlib should be compiled without it.
00696c1450da enable png support under win32
koda
parents:
diff changeset
    14
 * Even better than compiling with -DZ_PREFIX would be to use configure to set
00696c1450da enable png support under win32
koda
parents:
diff changeset
    15
 * this permanently in zconf.h using "./configure --zprefix".
00696c1450da enable png support under win32
koda
parents:
diff changeset
    16
 */
00696c1450da enable png support under win32
koda
parents:
diff changeset
    17
#ifdef Z_PREFIX     /* may be set to #if 1 by ./configure */
00696c1450da enable png support under win32
koda
parents:
diff changeset
    18
00696c1450da enable png support under win32
koda
parents:
diff changeset
    19
/* all linked symbols */
00696c1450da enable png support under win32
koda
parents:
diff changeset
    20
#  define _dist_code            z__dist_code
00696c1450da enable png support under win32
koda
parents:
diff changeset
    21
#  define _length_code          z__length_code
00696c1450da enable png support under win32
koda
parents:
diff changeset
    22
#  define _tr_align             z__tr_align
00696c1450da enable png support under win32
koda
parents:
diff changeset
    23
#  define _tr_flush_block       z__tr_flush_block
00696c1450da enable png support under win32
koda
parents:
diff changeset
    24
#  define _tr_init              z__tr_init
00696c1450da enable png support under win32
koda
parents:
diff changeset
    25
#  define _tr_stored_block      z__tr_stored_block
00696c1450da enable png support under win32
koda
parents:
diff changeset
    26
#  define _tr_tally             z__tr_tally
00696c1450da enable png support under win32
koda
parents:
diff changeset
    27
#  define adler32               z_adler32
00696c1450da enable png support under win32
koda
parents:
diff changeset
    28
#  define adler32_combine       z_adler32_combine
00696c1450da enable png support under win32
koda
parents:
diff changeset
    29
#  define adler32_combine64     z_adler32_combine64
00696c1450da enable png support under win32
koda
parents:
diff changeset
    30
#  define compress              z_compress
00696c1450da enable png support under win32
koda
parents:
diff changeset
    31
#  define compress2             z_compress2
00696c1450da enable png support under win32
koda
parents:
diff changeset
    32
#  define compressBound         z_compressBound
00696c1450da enable png support under win32
koda
parents:
diff changeset
    33
#  define crc32                 z_crc32
00696c1450da enable png support under win32
koda
parents:
diff changeset
    34
#  define crc32_combine         z_crc32_combine
00696c1450da enable png support under win32
koda
parents:
diff changeset
    35
#  define crc32_combine64       z_crc32_combine64
00696c1450da enable png support under win32
koda
parents:
diff changeset
    36
#  define deflate               z_deflate
00696c1450da enable png support under win32
koda
parents:
diff changeset
    37
#  define deflateBound          z_deflateBound
00696c1450da enable png support under win32
koda
parents:
diff changeset
    38
#  define deflateCopy           z_deflateCopy
00696c1450da enable png support under win32
koda
parents:
diff changeset
    39
#  define deflateEnd            z_deflateEnd
00696c1450da enable png support under win32
koda
parents:
diff changeset
    40
#  define deflateInit2_         z_deflateInit2_
00696c1450da enable png support under win32
koda
parents:
diff changeset
    41
#  define deflateInit_          z_deflateInit_
00696c1450da enable png support under win32
koda
parents:
diff changeset
    42
#  define deflateParams         z_deflateParams
00696c1450da enable png support under win32
koda
parents:
diff changeset
    43
#  define deflatePrime          z_deflatePrime
00696c1450da enable png support under win32
koda
parents:
diff changeset
    44
#  define deflateReset          z_deflateReset
00696c1450da enable png support under win32
koda
parents:
diff changeset
    45
#  define deflateSetDictionary  z_deflateSetDictionary
00696c1450da enable png support under win32
koda
parents:
diff changeset
    46
#  define deflateSetHeader      z_deflateSetHeader
00696c1450da enable png support under win32
koda
parents:
diff changeset
    47
#  define deflateTune           z_deflateTune
00696c1450da enable png support under win32
koda
parents:
diff changeset
    48
#  define deflate_copyright     z_deflate_copyright
00696c1450da enable png support under win32
koda
parents:
diff changeset
    49
#  define get_crc_table         z_get_crc_table
00696c1450da enable png support under win32
koda
parents:
diff changeset
    50
#  define gz_error              z_gz_error
00696c1450da enable png support under win32
koda
parents:
diff changeset
    51
#  define gz_intmax             z_gz_intmax
00696c1450da enable png support under win32
koda
parents:
diff changeset
    52
#  define gz_strwinerror        z_gz_strwinerror
00696c1450da enable png support under win32
koda
parents:
diff changeset
    53
#  define gzbuffer              z_gzbuffer
00696c1450da enable png support under win32
koda
parents:
diff changeset
    54
#  define gzclearerr            z_gzclearerr
00696c1450da enable png support under win32
koda
parents:
diff changeset
    55
#  define gzclose               z_gzclose
00696c1450da enable png support under win32
koda
parents:
diff changeset
    56
#  define gzclose_r             z_gzclose_r
00696c1450da enable png support under win32
koda
parents:
diff changeset
    57
#  define gzclose_w             z_gzclose_w
00696c1450da enable png support under win32
koda
parents:
diff changeset
    58
#  define gzdirect              z_gzdirect
00696c1450da enable png support under win32
koda
parents:
diff changeset
    59
#  define gzdopen               z_gzdopen
00696c1450da enable png support under win32
koda
parents:
diff changeset
    60
#  define gzeof                 z_gzeof
00696c1450da enable png support under win32
koda
parents:
diff changeset
    61
#  define gzerror               z_gzerror
00696c1450da enable png support under win32
koda
parents:
diff changeset
    62
#  define gzflush               z_gzflush
00696c1450da enable png support under win32
koda
parents:
diff changeset
    63
#  define gzgetc                z_gzgetc
00696c1450da enable png support under win32
koda
parents:
diff changeset
    64
#  define gzgets                z_gzgets
00696c1450da enable png support under win32
koda
parents:
diff changeset
    65
#  define gzoffset              z_gzoffset
00696c1450da enable png support under win32
koda
parents:
diff changeset
    66
#  define gzoffset64            z_gzoffset64
00696c1450da enable png support under win32
koda
parents:
diff changeset
    67
#  define gzopen                z_gzopen
00696c1450da enable png support under win32
koda
parents:
diff changeset
    68
#  define gzopen64              z_gzopen64
00696c1450da enable png support under win32
koda
parents:
diff changeset
    69
#  define gzprintf              z_gzprintf
00696c1450da enable png support under win32
koda
parents:
diff changeset
    70
#  define gzputc                z_gzputc
00696c1450da enable png support under win32
koda
parents:
diff changeset
    71
#  define gzputs                z_gzputs
00696c1450da enable png support under win32
koda
parents:
diff changeset
    72
#  define gzread                z_gzread
00696c1450da enable png support under win32
koda
parents:
diff changeset
    73
#  define gzrewind              z_gzrewind
00696c1450da enable png support under win32
koda
parents:
diff changeset
    74
#  define gzseek                z_gzseek
00696c1450da enable png support under win32
koda
parents:
diff changeset
    75
#  define gzseek64              z_gzseek64
00696c1450da enable png support under win32
koda
parents:
diff changeset
    76
#  define gzsetparams           z_gzsetparams
00696c1450da enable png support under win32
koda
parents:
diff changeset
    77
#  define gztell                z_gztell
00696c1450da enable png support under win32
koda
parents:
diff changeset
    78
#  define gztell64              z_gztell64
00696c1450da enable png support under win32
koda
parents:
diff changeset
    79
#  define gzungetc              z_gzungetc
00696c1450da enable png support under win32
koda
parents:
diff changeset
    80
#  define gzwrite               z_gzwrite
00696c1450da enable png support under win32
koda
parents:
diff changeset
    81
#  define inflate               z_inflate
00696c1450da enable png support under win32
koda
parents:
diff changeset
    82
#  define inflateBack           z_inflateBack
00696c1450da enable png support under win32
koda
parents:
diff changeset
    83
#  define inflateBackEnd        z_inflateBackEnd
00696c1450da enable png support under win32
koda
parents:
diff changeset
    84
#  define inflateBackInit_      z_inflateBackInit_
00696c1450da enable png support under win32
koda
parents:
diff changeset
    85
#  define inflateCopy           z_inflateCopy
00696c1450da enable png support under win32
koda
parents:
diff changeset
    86
#  define inflateEnd            z_inflateEnd
00696c1450da enable png support under win32
koda
parents:
diff changeset
    87
#  define inflateGetHeader      z_inflateGetHeader
00696c1450da enable png support under win32
koda
parents:
diff changeset
    88
#  define inflateInit2_         z_inflateInit2_
00696c1450da enable png support under win32
koda
parents:
diff changeset
    89
#  define inflateInit_          z_inflateInit_
00696c1450da enable png support under win32
koda
parents:
diff changeset
    90
#  define inflateMark           z_inflateMark
00696c1450da enable png support under win32
koda
parents:
diff changeset
    91
#  define inflatePrime          z_inflatePrime
00696c1450da enable png support under win32
koda
parents:
diff changeset
    92
#  define inflateReset          z_inflateReset
00696c1450da enable png support under win32
koda
parents:
diff changeset
    93
#  define inflateReset2         z_inflateReset2
00696c1450da enable png support under win32
koda
parents:
diff changeset
    94
#  define inflateSetDictionary  z_inflateSetDictionary
00696c1450da enable png support under win32
koda
parents:
diff changeset
    95
#  define inflateSync           z_inflateSync
00696c1450da enable png support under win32
koda
parents:
diff changeset
    96
#  define inflateSyncPoint      z_inflateSyncPoint
00696c1450da enable png support under win32
koda
parents:
diff changeset
    97
#  define inflateUndermine      z_inflateUndermine
00696c1450da enable png support under win32
koda
parents:
diff changeset
    98
#  define inflate_copyright     z_inflate_copyright
00696c1450da enable png support under win32
koda
parents:
diff changeset
    99
#  define inflate_fast          z_inflate_fast
00696c1450da enable png support under win32
koda
parents:
diff changeset
   100
#  define inflate_table         z_inflate_table
00696c1450da enable png support under win32
koda
parents:
diff changeset
   101
#  define uncompress            z_uncompress
00696c1450da enable png support under win32
koda
parents:
diff changeset
   102
#  define zError                z_zError
00696c1450da enable png support under win32
koda
parents:
diff changeset
   103
#  define zcalloc               z_zcalloc
00696c1450da enable png support under win32
koda
parents:
diff changeset
   104
#  define zcfree                z_zcfree
00696c1450da enable png support under win32
koda
parents:
diff changeset
   105
#  define zlibCompileFlags      z_zlibCompileFlags
00696c1450da enable png support under win32
koda
parents:
diff changeset
   106
#  define zlibVersion           z_zlibVersion
00696c1450da enable png support under win32
koda
parents:
diff changeset
   107
00696c1450da enable png support under win32
koda
parents:
diff changeset
   108
/* all zlib typedefs in zlib.h and zconf.h */
00696c1450da enable png support under win32
koda
parents:
diff changeset
   109
#  define Byte                  z_Byte
00696c1450da enable png support under win32
koda
parents:
diff changeset
   110
#  define Bytef                 z_Bytef
00696c1450da enable png support under win32
koda
parents:
diff changeset
   111
#  define alloc_func            z_alloc_func
00696c1450da enable png support under win32
koda
parents:
diff changeset
   112
#  define charf                 z_charf
00696c1450da enable png support under win32
koda
parents:
diff changeset
   113
#  define free_func             z_free_func
00696c1450da enable png support under win32
koda
parents:
diff changeset
   114
#  define gzFile                z_gzFile
00696c1450da enable png support under win32
koda
parents:
diff changeset
   115
#  define gz_header             z_gz_header
00696c1450da enable png support under win32
koda
parents:
diff changeset
   116
#  define gz_headerp            z_gz_headerp
00696c1450da enable png support under win32
koda
parents:
diff changeset
   117
#  define in_func               z_in_func
00696c1450da enable png support under win32
koda
parents:
diff changeset
   118
#  define intf                  z_intf
00696c1450da enable png support under win32
koda
parents:
diff changeset
   119
#  define out_func              z_out_func
00696c1450da enable png support under win32
koda
parents:
diff changeset
   120
#  define uInt                  z_uInt
00696c1450da enable png support under win32
koda
parents:
diff changeset
   121
#  define uIntf                 z_uIntf
00696c1450da enable png support under win32
koda
parents:
diff changeset
   122
#  define uLong                 z_uLong
00696c1450da enable png support under win32
koda
parents:
diff changeset
   123
#  define uLongf                z_uLongf
00696c1450da enable png support under win32
koda
parents:
diff changeset
   124
#  define voidp                 z_voidp
00696c1450da enable png support under win32
koda
parents:
diff changeset
   125
#  define voidpc                z_voidpc
00696c1450da enable png support under win32
koda
parents:
diff changeset
   126
#  define voidpf                z_voidpf
00696c1450da enable png support under win32
koda
parents:
diff changeset
   127
00696c1450da enable png support under win32
koda
parents:
diff changeset
   128
/* all zlib structs in zlib.h and zconf.h */
00696c1450da enable png support under win32
koda
parents:
diff changeset
   129
#  define gz_header_s           z_gz_header_s
00696c1450da enable png support under win32
koda
parents:
diff changeset
   130
#  define internal_state        z_internal_state
00696c1450da enable png support under win32
koda
parents:
diff changeset
   131
00696c1450da enable png support under win32
koda
parents:
diff changeset
   132
#endif
00696c1450da enable png support under win32
koda
parents:
diff changeset
   133
00696c1450da enable png support under win32
koda
parents:
diff changeset
   134
#if defined(__MSDOS__) && !defined(MSDOS)
00696c1450da enable png support under win32
koda
parents:
diff changeset
   135
#  define MSDOS
00696c1450da enable png support under win32
koda
parents:
diff changeset
   136
#endif
00696c1450da enable png support under win32
koda
parents:
diff changeset
   137
#if (defined(OS_2) || defined(__OS2__)) && !defined(OS2)
00696c1450da enable png support under win32
koda
parents:
diff changeset
   138
#  define OS2
00696c1450da enable png support under win32
koda
parents:
diff changeset
   139
#endif
00696c1450da enable png support under win32
koda
parents:
diff changeset
   140
#if defined(_WINDOWS) && !defined(WINDOWS)
00696c1450da enable png support under win32
koda
parents:
diff changeset
   141
#  define WINDOWS
00696c1450da enable png support under win32
koda
parents:
diff changeset
   142
#endif
00696c1450da enable png support under win32
koda
parents:
diff changeset
   143
#if defined(_WIN32) || defined(_WIN32_WCE) || defined(__WIN32__)
00696c1450da enable png support under win32
koda
parents:
diff changeset
   144
#  ifndef WIN32
00696c1450da enable png support under win32
koda
parents:
diff changeset
   145
#    define WIN32
00696c1450da enable png support under win32
koda
parents:
diff changeset
   146
#  endif
00696c1450da enable png support under win32
koda
parents:
diff changeset
   147
#endif
00696c1450da enable png support under win32
koda
parents:
diff changeset
   148
#if (defined(MSDOS) || defined(OS2) || defined(WINDOWS)) && !defined(WIN32)
00696c1450da enable png support under win32
koda
parents:
diff changeset
   149
#  if !defined(__GNUC__) && !defined(__FLAT__) && !defined(__386__)
00696c1450da enable png support under win32
koda
parents:
diff changeset
   150
#    ifndef SYS16BIT
00696c1450da enable png support under win32
koda
parents:
diff changeset
   151
#      define SYS16BIT
00696c1450da enable png support under win32
koda
parents:
diff changeset
   152
#    endif
00696c1450da enable png support under win32
koda
parents:
diff changeset
   153
#  endif
00696c1450da enable png support under win32
koda
parents:
diff changeset
   154
#endif
00696c1450da enable png support under win32
koda
parents:
diff changeset
   155
00696c1450da enable png support under win32
koda
parents:
diff changeset
   156
/*
00696c1450da enable png support under win32
koda
parents:
diff changeset
   157
 * Compile with -DMAXSEG_64K if the alloc function cannot allocate more
00696c1450da enable png support under win32
koda
parents:
diff changeset
   158
 * than 64k bytes at a time (needed on systems with 16-bit int).
00696c1450da enable png support under win32
koda
parents:
diff changeset
   159
 */
00696c1450da enable png support under win32
koda
parents:
diff changeset
   160
#ifdef SYS16BIT
00696c1450da enable png support under win32
koda
parents:
diff changeset
   161
#  define MAXSEG_64K
00696c1450da enable png support under win32
koda
parents:
diff changeset
   162
#endif
00696c1450da enable png support under win32
koda
parents:
diff changeset
   163
#ifdef MSDOS
00696c1450da enable png support under win32
koda
parents:
diff changeset
   164
#  define UNALIGNED_OK
00696c1450da enable png support under win32
koda
parents:
diff changeset
   165
#endif
00696c1450da enable png support under win32
koda
parents:
diff changeset
   166
00696c1450da enable png support under win32
koda
parents:
diff changeset
   167
#ifdef __STDC_VERSION__
00696c1450da enable png support under win32
koda
parents:
diff changeset
   168
#  ifndef STDC
00696c1450da enable png support under win32
koda
parents:
diff changeset
   169
#    define STDC
00696c1450da enable png support under win32
koda
parents:
diff changeset
   170
#  endif
00696c1450da enable png support under win32
koda
parents:
diff changeset
   171
#  if __STDC_VERSION__ >= 199901L
00696c1450da enable png support under win32
koda
parents:
diff changeset
   172
#    ifndef STDC99
00696c1450da enable png support under win32
koda
parents:
diff changeset
   173
#      define STDC99
00696c1450da enable png support under win32
koda
parents:
diff changeset
   174
#    endif
00696c1450da enable png support under win32
koda
parents:
diff changeset
   175
#  endif
00696c1450da enable png support under win32
koda
parents:
diff changeset
   176
#endif
00696c1450da enable png support under win32
koda
parents:
diff changeset
   177
#if !defined(STDC) && (defined(__STDC__) || defined(__cplusplus))
00696c1450da enable png support under win32
koda
parents:
diff changeset
   178
#  define STDC
00696c1450da enable png support under win32
koda
parents:
diff changeset
   179
#endif
00696c1450da enable png support under win32
koda
parents:
diff changeset
   180
#if !defined(STDC) && (defined(__GNUC__) || defined(__BORLANDC__))
00696c1450da enable png support under win32
koda
parents:
diff changeset
   181
#  define STDC
00696c1450da enable png support under win32
koda
parents:
diff changeset
   182
#endif
00696c1450da enable png support under win32
koda
parents:
diff changeset
   183
#if !defined(STDC) && (defined(MSDOS) || defined(WINDOWS) || defined(WIN32))
00696c1450da enable png support under win32
koda
parents:
diff changeset
   184
#  define STDC
00696c1450da enable png support under win32
koda
parents:
diff changeset
   185
#endif
00696c1450da enable png support under win32
koda
parents:
diff changeset
   186
#if !defined(STDC) && (defined(OS2) || defined(__HOS_AIX__))
00696c1450da enable png support under win32
koda
parents:
diff changeset
   187
#  define STDC
00696c1450da enable png support under win32
koda
parents:
diff changeset
   188
#endif
00696c1450da enable png support under win32
koda
parents:
diff changeset
   189
00696c1450da enable png support under win32
koda
parents:
diff changeset
   190
#if defined(__OS400__) && !defined(STDC)    /* iSeries (formerly AS/400). */
00696c1450da enable png support under win32
koda
parents:
diff changeset
   191
#  define STDC
00696c1450da enable png support under win32
koda
parents:
diff changeset
   192
#endif
00696c1450da enable png support under win32
koda
parents:
diff changeset
   193
00696c1450da enable png support under win32
koda
parents:
diff changeset
   194
#ifndef STDC
00696c1450da enable png support under win32
koda
parents:
diff changeset
   195
#  ifndef const /* cannot use !defined(STDC) && !defined(const) on Mac */
00696c1450da enable png support under win32
koda
parents:
diff changeset
   196
#    define const       /* note: need a more gentle solution here */
00696c1450da enable png support under win32
koda
parents:
diff changeset
   197
#  endif
00696c1450da enable png support under win32
koda
parents:
diff changeset
   198
#endif
00696c1450da enable png support under win32
koda
parents:
diff changeset
   199
00696c1450da enable png support under win32
koda
parents:
diff changeset
   200
/* Some Mac compilers merge all .h files incorrectly: */
00696c1450da enable png support under win32
koda
parents:
diff changeset
   201
#if defined(__MWERKS__)||defined(applec)||defined(THINK_C)||defined(__SC__)
00696c1450da enable png support under win32
koda
parents:
diff changeset
   202
#  define NO_DUMMY_DECL
00696c1450da enable png support under win32
koda
parents:
diff changeset
   203
#endif
00696c1450da enable png support under win32
koda
parents:
diff changeset
   204
00696c1450da enable png support under win32
koda
parents:
diff changeset
   205
/* Maximum value for memLevel in deflateInit2 */
00696c1450da enable png support under win32
koda
parents:
diff changeset
   206
#ifndef MAX_MEM_LEVEL
00696c1450da enable png support under win32
koda
parents:
diff changeset
   207
#  ifdef MAXSEG_64K
00696c1450da enable png support under win32
koda
parents:
diff changeset
   208
#    define MAX_MEM_LEVEL 8
00696c1450da enable png support under win32
koda
parents:
diff changeset
   209
#  else
00696c1450da enable png support under win32
koda
parents:
diff changeset
   210
#    define MAX_MEM_LEVEL 9
00696c1450da enable png support under win32
koda
parents:
diff changeset
   211
#  endif
00696c1450da enable png support under win32
koda
parents:
diff changeset
   212
#endif
00696c1450da enable png support under win32
koda
parents:
diff changeset
   213
00696c1450da enable png support under win32
koda
parents:
diff changeset
   214
/* Maximum value for windowBits in deflateInit2 and inflateInit2.
00696c1450da enable png support under win32
koda
parents:
diff changeset
   215
 * WARNING: reducing MAX_WBITS makes minigzip unable to extract .gz files
00696c1450da enable png support under win32
koda
parents:
diff changeset
   216
 * created by gzip. (Files created by minigzip can still be extracted by
00696c1450da enable png support under win32
koda
parents:
diff changeset
   217
 * gzip.)
00696c1450da enable png support under win32
koda
parents:
diff changeset
   218
 */
00696c1450da enable png support under win32
koda
parents:
diff changeset
   219
#ifndef MAX_WBITS
00696c1450da enable png support under win32
koda
parents:
diff changeset
   220
#  define MAX_WBITS   15 /* 32K LZ77 window */
00696c1450da enable png support under win32
koda
parents:
diff changeset
   221
#endif
00696c1450da enable png support under win32
koda
parents:
diff changeset
   222
00696c1450da enable png support under win32
koda
parents:
diff changeset
   223
/* The memory requirements for deflate are (in bytes):
00696c1450da enable png support under win32
koda
parents:
diff changeset
   224
            (1 << (windowBits+2)) +  (1 << (memLevel+9))
00696c1450da enable png support under win32
koda
parents:
diff changeset
   225
 that is: 128K for windowBits=15  +  128K for memLevel = 8  (default values)
00696c1450da enable png support under win32
koda
parents:
diff changeset
   226
 plus a few kilobytes for small objects. For example, if you want to reduce
00696c1450da enable png support under win32
koda
parents:
diff changeset
   227
 the default memory requirements from 256K to 128K, compile with
00696c1450da enable png support under win32
koda
parents:
diff changeset
   228
     make CFLAGS="-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7"
00696c1450da enable png support under win32
koda
parents:
diff changeset
   229
 Of course this will generally degrade compression (there's no free lunch).
00696c1450da enable png support under win32
koda
parents:
diff changeset
   230
00696c1450da enable png support under win32
koda
parents:
diff changeset
   231
   The memory requirements for inflate are (in bytes) 1 << windowBits
00696c1450da enable png support under win32
koda
parents:
diff changeset
   232
 that is, 32K for windowBits=15 (default value) plus a few kilobytes
00696c1450da enable png support under win32
koda
parents:
diff changeset
   233
 for small objects.
00696c1450da enable png support under win32
koda
parents:
diff changeset
   234
*/
00696c1450da enable png support under win32
koda
parents:
diff changeset
   235
00696c1450da enable png support under win32
koda
parents:
diff changeset
   236
                        /* Type declarations */
00696c1450da enable png support under win32
koda
parents:
diff changeset
   237
00696c1450da enable png support under win32
koda
parents:
diff changeset
   238
#ifndef OF /* function prototypes */
00696c1450da enable png support under win32
koda
parents:
diff changeset
   239
#  ifdef STDC
00696c1450da enable png support under win32
koda
parents:
diff changeset
   240
#    define OF(args)  args
00696c1450da enable png support under win32
koda
parents:
diff changeset
   241
#  else
00696c1450da enable png support under win32
koda
parents:
diff changeset
   242
#    define OF(args)  ()
00696c1450da enable png support under win32
koda
parents:
diff changeset
   243
#  endif
00696c1450da enable png support under win32
koda
parents:
diff changeset
   244
#endif
00696c1450da enable png support under win32
koda
parents:
diff changeset
   245
00696c1450da enable png support under win32
koda
parents:
diff changeset
   246
/* The following definitions for FAR are needed only for MSDOS mixed
00696c1450da enable png support under win32
koda
parents:
diff changeset
   247
 * model programming (small or medium model with some far allocations).
00696c1450da enable png support under win32
koda
parents:
diff changeset
   248
 * This was tested only with MSC; for other MSDOS compilers you may have
00696c1450da enable png support under win32
koda
parents:
diff changeset
   249
 * to define NO_MEMCPY in zutil.h.  If you don't need the mixed model,
00696c1450da enable png support under win32
koda
parents:
diff changeset
   250
 * just define FAR to be empty.
00696c1450da enable png support under win32
koda
parents:
diff changeset
   251
 */
00696c1450da enable png support under win32
koda
parents:
diff changeset
   252
#ifdef SYS16BIT
00696c1450da enable png support under win32
koda
parents:
diff changeset
   253
#  if defined(M_I86SM) || defined(M_I86MM)
00696c1450da enable png support under win32
koda
parents:
diff changeset
   254
     /* MSC small or medium model */
00696c1450da enable png support under win32
koda
parents:
diff changeset
   255
#    define SMALL_MEDIUM
00696c1450da enable png support under win32
koda
parents:
diff changeset
   256
#    ifdef _MSC_VER
00696c1450da enable png support under win32
koda
parents:
diff changeset
   257
#      define FAR _far
00696c1450da enable png support under win32
koda
parents:
diff changeset
   258
#    else
00696c1450da enable png support under win32
koda
parents:
diff changeset
   259
#      define FAR far
00696c1450da enable png support under win32
koda
parents:
diff changeset
   260
#    endif
00696c1450da enable png support under win32
koda
parents:
diff changeset
   261
#  endif
00696c1450da enable png support under win32
koda
parents:
diff changeset
   262
#  if (defined(__SMALL__) || defined(__MEDIUM__))
00696c1450da enable png support under win32
koda
parents:
diff changeset
   263
     /* Turbo C small or medium model */
00696c1450da enable png support under win32
koda
parents:
diff changeset
   264
#    define SMALL_MEDIUM
00696c1450da enable png support under win32
koda
parents:
diff changeset
   265
#    ifdef __BORLANDC__
00696c1450da enable png support under win32
koda
parents:
diff changeset
   266
#      define FAR _far
00696c1450da enable png support under win32
koda
parents:
diff changeset
   267
#    else
00696c1450da enable png support under win32
koda
parents:
diff changeset
   268
#      define FAR far
00696c1450da enable png support under win32
koda
parents:
diff changeset
   269
#    endif
00696c1450da enable png support under win32
koda
parents:
diff changeset
   270
#  endif
00696c1450da enable png support under win32
koda
parents:
diff changeset
   271
#endif
00696c1450da enable png support under win32
koda
parents:
diff changeset
   272
00696c1450da enable png support under win32
koda
parents:
diff changeset
   273
#if defined(WINDOWS) || defined(WIN32)
00696c1450da enable png support under win32
koda
parents:
diff changeset
   274
   /* If building or using zlib as a DLL, define ZLIB_DLL.
00696c1450da enable png support under win32
koda
parents:
diff changeset
   275
    * This is not mandatory, but it offers a little performance increase.
00696c1450da enable png support under win32
koda
parents:
diff changeset
   276
    */
00696c1450da enable png support under win32
koda
parents:
diff changeset
   277
#  ifdef ZLIB_DLL
00696c1450da enable png support under win32
koda
parents:
diff changeset
   278
#    if defined(WIN32) && (!defined(__BORLANDC__) || (__BORLANDC__ >= 0x500))
00696c1450da enable png support under win32
koda
parents:
diff changeset
   279
#      ifdef ZLIB_INTERNAL
00696c1450da enable png support under win32
koda
parents:
diff changeset
   280
#        define ZEXTERN extern __declspec(dllexport)
00696c1450da enable png support under win32
koda
parents:
diff changeset
   281
#      else
00696c1450da enable png support under win32
koda
parents:
diff changeset
   282
#        define ZEXTERN extern __declspec(dllimport)
00696c1450da enable png support under win32
koda
parents:
diff changeset
   283
#      endif
00696c1450da enable png support under win32
koda
parents:
diff changeset
   284
#    endif
00696c1450da enable png support under win32
koda
parents:
diff changeset
   285
#  endif  /* ZLIB_DLL */
00696c1450da enable png support under win32
koda
parents:
diff changeset
   286
   /* If building or using zlib with the WINAPI/WINAPIV calling convention,
00696c1450da enable png support under win32
koda
parents:
diff changeset
   287
    * define ZLIB_WINAPI.
00696c1450da enable png support under win32
koda
parents:
diff changeset
   288
    * Caution: the standard ZLIB1.DLL is NOT compiled using ZLIB_WINAPI.
00696c1450da enable png support under win32
koda
parents:
diff changeset
   289
    */
00696c1450da enable png support under win32
koda
parents:
diff changeset
   290
#  ifdef ZLIB_WINAPI
00696c1450da enable png support under win32
koda
parents:
diff changeset
   291
#    ifdef FAR
00696c1450da enable png support under win32
koda
parents:
diff changeset
   292
#      undef FAR
00696c1450da enable png support under win32
koda
parents:
diff changeset
   293
#    endif
00696c1450da enable png support under win32
koda
parents:
diff changeset
   294
#    include <windows.h>
00696c1450da enable png support under win32
koda
parents:
diff changeset
   295
     /* No need for _export, use ZLIB.DEF instead. */
00696c1450da enable png support under win32
koda
parents:
diff changeset
   296
     /* For complete Windows compatibility, use WINAPI, not __stdcall. */
00696c1450da enable png support under win32
koda
parents:
diff changeset
   297
#    define ZEXPORT WINAPI
00696c1450da enable png support under win32
koda
parents:
diff changeset
   298
#    ifdef WIN32
00696c1450da enable png support under win32
koda
parents:
diff changeset
   299
#      define ZEXPORTVA WINAPIV
00696c1450da enable png support under win32
koda
parents:
diff changeset
   300
#    else
00696c1450da enable png support under win32
koda
parents:
diff changeset
   301
#      define ZEXPORTVA FAR CDECL
00696c1450da enable png support under win32
koda
parents:
diff changeset
   302
#    endif
00696c1450da enable png support under win32
koda
parents:
diff changeset
   303
#  endif
00696c1450da enable png support under win32
koda
parents:
diff changeset
   304
#endif
00696c1450da enable png support under win32
koda
parents:
diff changeset
   305
00696c1450da enable png support under win32
koda
parents:
diff changeset
   306
#if defined (__BEOS__)
00696c1450da enable png support under win32
koda
parents:
diff changeset
   307
#  ifdef ZLIB_DLL
00696c1450da enable png support under win32
koda
parents:
diff changeset
   308
#    ifdef ZLIB_INTERNAL
00696c1450da enable png support under win32
koda
parents:
diff changeset
   309
#      define ZEXPORT   __declspec(dllexport)
00696c1450da enable png support under win32
koda
parents:
diff changeset
   310
#      define ZEXPORTVA __declspec(dllexport)
00696c1450da enable png support under win32
koda
parents:
diff changeset
   311
#    else
00696c1450da enable png support under win32
koda
parents:
diff changeset
   312
#      define ZEXPORT   __declspec(dllimport)
00696c1450da enable png support under win32
koda
parents:
diff changeset
   313
#      define ZEXPORTVA __declspec(dllimport)
00696c1450da enable png support under win32
koda
parents:
diff changeset
   314
#    endif
00696c1450da enable png support under win32
koda
parents:
diff changeset
   315
#  endif
00696c1450da enable png support under win32
koda
parents:
diff changeset
   316
#endif
00696c1450da enable png support under win32
koda
parents:
diff changeset
   317
00696c1450da enable png support under win32
koda
parents:
diff changeset
   318
#ifndef ZEXTERN
00696c1450da enable png support under win32
koda
parents:
diff changeset
   319
#  define ZEXTERN extern
00696c1450da enable png support under win32
koda
parents:
diff changeset
   320
#endif
00696c1450da enable png support under win32
koda
parents:
diff changeset
   321
#ifndef ZEXPORT
00696c1450da enable png support under win32
koda
parents:
diff changeset
   322
#  define ZEXPORT
00696c1450da enable png support under win32
koda
parents:
diff changeset
   323
#endif
00696c1450da enable png support under win32
koda
parents:
diff changeset
   324
#ifndef ZEXPORTVA
00696c1450da enable png support under win32
koda
parents:
diff changeset
   325
#  define ZEXPORTVA
00696c1450da enable png support under win32
koda
parents:
diff changeset
   326
#endif
00696c1450da enable png support under win32
koda
parents:
diff changeset
   327
00696c1450da enable png support under win32
koda
parents:
diff changeset
   328
#ifndef FAR
00696c1450da enable png support under win32
koda
parents:
diff changeset
   329
#  define FAR
00696c1450da enable png support under win32
koda
parents:
diff changeset
   330
#endif
00696c1450da enable png support under win32
koda
parents:
diff changeset
   331
00696c1450da enable png support under win32
koda
parents:
diff changeset
   332
#if !defined(__MACTYPES__)
00696c1450da enable png support under win32
koda
parents:
diff changeset
   333
typedef unsigned char  Byte;  /* 8 bits */
00696c1450da enable png support under win32
koda
parents:
diff changeset
   334
#endif
00696c1450da enable png support under win32
koda
parents:
diff changeset
   335
typedef unsigned int   uInt;  /* 16 bits or more */
00696c1450da enable png support under win32
koda
parents:
diff changeset
   336
typedef unsigned long  uLong; /* 32 bits or more */
00696c1450da enable png support under win32
koda
parents:
diff changeset
   337
00696c1450da enable png support under win32
koda
parents:
diff changeset
   338
#ifdef SMALL_MEDIUM
00696c1450da enable png support under win32
koda
parents:
diff changeset
   339
   /* Borland C/C++ and some old MSC versions ignore FAR inside typedef */
00696c1450da enable png support under win32
koda
parents:
diff changeset
   340
#  define Bytef Byte FAR
00696c1450da enable png support under win32
koda
parents:
diff changeset
   341
#else
00696c1450da enable png support under win32
koda
parents:
diff changeset
   342
   typedef Byte  FAR Bytef;
00696c1450da enable png support under win32
koda
parents:
diff changeset
   343
#endif
00696c1450da enable png support under win32
koda
parents:
diff changeset
   344
typedef char  FAR charf;
00696c1450da enable png support under win32
koda
parents:
diff changeset
   345
typedef int   FAR intf;
00696c1450da enable png support under win32
koda
parents:
diff changeset
   346
typedef uInt  FAR uIntf;
00696c1450da enable png support under win32
koda
parents:
diff changeset
   347
typedef uLong FAR uLongf;
00696c1450da enable png support under win32
koda
parents:
diff changeset
   348
00696c1450da enable png support under win32
koda
parents:
diff changeset
   349
#ifdef STDC
00696c1450da enable png support under win32
koda
parents:
diff changeset
   350
   typedef void const *voidpc;
00696c1450da enable png support under win32
koda
parents:
diff changeset
   351
   typedef void FAR   *voidpf;
00696c1450da enable png support under win32
koda
parents:
diff changeset
   352
   typedef void       *voidp;
00696c1450da enable png support under win32
koda
parents:
diff changeset
   353
#else
00696c1450da enable png support under win32
koda
parents:
diff changeset
   354
   typedef Byte const *voidpc;
00696c1450da enable png support under win32
koda
parents:
diff changeset
   355
   typedef Byte FAR   *voidpf;
00696c1450da enable png support under win32
koda
parents:
diff changeset
   356
   typedef Byte       *voidp;
00696c1450da enable png support under win32
koda
parents:
diff changeset
   357
#endif
00696c1450da enable png support under win32
koda
parents:
diff changeset
   358
00696c1450da enable png support under win32
koda
parents:
diff changeset
   359
#ifdef HAVE_UNISTD_H    /* may be set to #if 1 by ./configure */
00696c1450da enable png support under win32
koda
parents:
diff changeset
   360
#  define Z_HAVE_UNISTD_H
00696c1450da enable png support under win32
koda
parents:
diff changeset
   361
#endif
00696c1450da enable png support under win32
koda
parents:
diff changeset
   362
00696c1450da enable png support under win32
koda
parents:
diff changeset
   363
#ifdef STDC
00696c1450da enable png support under win32
koda
parents:
diff changeset
   364
#  include <sys/types.h>    /* for off_t */
00696c1450da enable png support under win32
koda
parents:
diff changeset
   365
#endif
00696c1450da enable png support under win32
koda
parents:
diff changeset
   366
00696c1450da enable png support under win32
koda
parents:
diff changeset
   367
/* a little trick to accommodate both "#define _LARGEFILE64_SOURCE" and
00696c1450da enable png support under win32
koda
parents:
diff changeset
   368
 * "#define _LARGEFILE64_SOURCE 1" as requesting 64-bit operations, (even
00696c1450da enable png support under win32
koda
parents:
diff changeset
   369
 * though the former does not conform to the LFS document), but considering
00696c1450da enable png support under win32
koda
parents:
diff changeset
   370
 * both "#undef _LARGEFILE64_SOURCE" and "#define _LARGEFILE64_SOURCE 0" as
00696c1450da enable png support under win32
koda
parents:
diff changeset
   371
 * equivalently requesting no 64-bit operations
00696c1450da enable png support under win32
koda
parents:
diff changeset
   372
 */
00696c1450da enable png support under win32
koda
parents:
diff changeset
   373
#if -_LARGEFILE64_SOURCE - -1 == 1
00696c1450da enable png support under win32
koda
parents:
diff changeset
   374
#  undef _LARGEFILE64_SOURCE
00696c1450da enable png support under win32
koda
parents:
diff changeset
   375
#endif
00696c1450da enable png support under win32
koda
parents:
diff changeset
   376
00696c1450da enable png support under win32
koda
parents:
diff changeset
   377
#if defined(Z_HAVE_UNISTD_H) || defined(_LARGEFILE64_SOURCE)
00696c1450da enable png support under win32
koda
parents:
diff changeset
   378
#  include <unistd.h>       /* for SEEK_* and off_t */
00696c1450da enable png support under win32
koda
parents:
diff changeset
   379
#  ifdef VMS
00696c1450da enable png support under win32
koda
parents:
diff changeset
   380
#    include <unixio.h>     /* for off_t */
00696c1450da enable png support under win32
koda
parents:
diff changeset
   381
#  endif
00696c1450da enable png support under win32
koda
parents:
diff changeset
   382
#  ifndef z_off_t
00696c1450da enable png support under win32
koda
parents:
diff changeset
   383
#    define z_off_t off_t
00696c1450da enable png support under win32
koda
parents:
diff changeset
   384
#  endif
00696c1450da enable png support under win32
koda
parents:
diff changeset
   385
#endif
00696c1450da enable png support under win32
koda
parents:
diff changeset
   386
00696c1450da enable png support under win32
koda
parents:
diff changeset
   387
#ifndef SEEK_SET
00696c1450da enable png support under win32
koda
parents:
diff changeset
   388
#  define SEEK_SET        0       /* Seek from beginning of file.  */
00696c1450da enable png support under win32
koda
parents:
diff changeset
   389
#  define SEEK_CUR        1       /* Seek from current position.  */
00696c1450da enable png support under win32
koda
parents:
diff changeset
   390
#  define SEEK_END        2       /* Set file pointer to EOF plus "offset" */
00696c1450da enable png support under win32
koda
parents:
diff changeset
   391
#endif
00696c1450da enable png support under win32
koda
parents:
diff changeset
   392
00696c1450da enable png support under win32
koda
parents:
diff changeset
   393
#ifndef z_off_t
00696c1450da enable png support under win32
koda
parents:
diff changeset
   394
#  define z_off_t long
00696c1450da enable png support under win32
koda
parents:
diff changeset
   395
#endif
00696c1450da enable png support under win32
koda
parents:
diff changeset
   396
00696c1450da enable png support under win32
koda
parents:
diff changeset
   397
#if defined(_LARGEFILE64_SOURCE) && _LFS64_LARGEFILE-0
00696c1450da enable png support under win32
koda
parents:
diff changeset
   398
#  define z_off64_t off64_t
00696c1450da enable png support under win32
koda
parents:
diff changeset
   399
#else
00696c1450da enable png support under win32
koda
parents:
diff changeset
   400
#  define z_off64_t z_off_t
00696c1450da enable png support under win32
koda
parents:
diff changeset
   401
#endif
00696c1450da enable png support under win32
koda
parents:
diff changeset
   402
00696c1450da enable png support under win32
koda
parents:
diff changeset
   403
#if defined(__OS400__)
00696c1450da enable png support under win32
koda
parents:
diff changeset
   404
#  define NO_vsnprintf
00696c1450da enable png support under win32
koda
parents:
diff changeset
   405
#endif
00696c1450da enable png support under win32
koda
parents:
diff changeset
   406
00696c1450da enable png support under win32
koda
parents:
diff changeset
   407
#if defined(__MVS__)
00696c1450da enable png support under win32
koda
parents:
diff changeset
   408
#  define NO_vsnprintf
00696c1450da enable png support under win32
koda
parents:
diff changeset
   409
#endif
00696c1450da enable png support under win32
koda
parents:
diff changeset
   410
00696c1450da enable png support under win32
koda
parents:
diff changeset
   411
/* MVS linker does not support external names larger than 8 bytes */
00696c1450da enable png support under win32
koda
parents:
diff changeset
   412
#if defined(__MVS__)
00696c1450da enable png support under win32
koda
parents:
diff changeset
   413
  #pragma map(deflateInit_,"DEIN")
00696c1450da enable png support under win32
koda
parents:
diff changeset
   414
  #pragma map(deflateInit2_,"DEIN2")
00696c1450da enable png support under win32
koda
parents:
diff changeset
   415
  #pragma map(deflateEnd,"DEEND")
00696c1450da enable png support under win32
koda
parents:
diff changeset
   416
  #pragma map(deflateBound,"DEBND")
00696c1450da enable png support under win32
koda
parents:
diff changeset
   417
  #pragma map(inflateInit_,"ININ")
00696c1450da enable png support under win32
koda
parents:
diff changeset
   418
  #pragma map(inflateInit2_,"ININ2")
00696c1450da enable png support under win32
koda
parents:
diff changeset
   419
  #pragma map(inflateEnd,"INEND")
00696c1450da enable png support under win32
koda
parents:
diff changeset
   420
  #pragma map(inflateSync,"INSY")
00696c1450da enable png support under win32
koda
parents:
diff changeset
   421
  #pragma map(inflateSetDictionary,"INSEDI")
00696c1450da enable png support under win32
koda
parents:
diff changeset
   422
  #pragma map(compressBound,"CMBND")
00696c1450da enable png support under win32
koda
parents:
diff changeset
   423
  #pragma map(inflate_table,"INTABL")
00696c1450da enable png support under win32
koda
parents:
diff changeset
   424
  #pragma map(inflate_fast,"INFA")
00696c1450da enable png support under win32
koda
parents:
diff changeset
   425
  #pragma map(inflate_copyright,"INCOPY")
00696c1450da enable png support under win32
koda
parents:
diff changeset
   426
#endif
00696c1450da enable png support under win32
koda
parents:
diff changeset
   427
00696c1450da enable png support under win32
koda
parents:
diff changeset
   428
#endif /* ZCONF_H */