misc/libfreetype/src/gzip/zconf.h
author nemo
Sun, 11 Sep 2011 21:32:49 -0400
changeset 5872 454f246fe4c5
parent 5172 88f2e05288ba
permissions -rw-r--r--
uh, that was just so I could look at the flame more closely, wasn't supposed to be checked in
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5172
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     1
/* zconf.h -- configuration of the zlib compression library
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     2
 * Copyright (C) 1995-2002 Jean-loup Gailly.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     3
 * For conditions of distribution and use, see copyright notice in zlib.h
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     4
 */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     5
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     6
/* @(#) $Id$ */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     7
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     8
#ifndef _ZCONF_H
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
     9
#define _ZCONF_H
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    10
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    11
/*
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    12
 * If you *really* need a unique prefix for all types and library functions,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    13
 * compile with -DZ_PREFIX. The "standard" zlib should be compiled without it.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    14
 */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    15
#ifdef Z_PREFIX
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    16
#  define deflateInit_         z_deflateInit_
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    17
#  define deflate              z_deflate
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    18
#  define deflateEnd           z_deflateEnd
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    19
#  define inflateInit_         z_inflateInit_
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    20
#  define inflate              z_inflate
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    21
#  define inflateEnd           z_inflateEnd
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    22
#  define deflateInit2_        z_deflateInit2_
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    23
#  define deflateSetDictionary z_deflateSetDictionary
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    24
#  define deflateCopy          z_deflateCopy
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    25
#  define deflateReset         z_deflateReset
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    26
#  define deflateParams        z_deflateParams
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    27
#  define inflateInit2_        z_inflateInit2_
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    28
#  define inflateSetDictionary z_inflateSetDictionary
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    29
#  define inflateSync          z_inflateSync
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    30
#  define inflateSyncPoint     z_inflateSyncPoint
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    31
#  define inflateReset         z_inflateReset
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    32
#  define compress             z_compress
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    33
#  define compress2            z_compress2
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    34
#  define uncompress           z_uncompress
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    35
#  define adler32              z_adler32
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    36
#  define crc32                z_crc32
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    37
#  define get_crc_table        z_get_crc_table
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    38
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    39
#  define Byte   z_Byte
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    40
#  define uInt   z_uInt
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    41
#  define uLong  z_uLong
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    42
#  define Bytef  z_Bytef
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    43
#  define charf  z_charf
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    44
#  define intf   z_intf
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    45
#  define uIntf  z_uIntf
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    46
#  define uLongf z_uLongf
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    47
#  define voidpf z_voidpf
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    48
#  define voidp  z_voidp
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    49
#endif
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    50
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    51
#if (defined(_WIN32) || defined(__WIN32__)) && !defined(WIN32)
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    52
#  define WIN32
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    53
#endif
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    54
#if defined(__GNUC__) || defined(WIN32) || defined(__386__) || defined(i386)
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    55
#  ifndef __32BIT__
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    56
#    define __32BIT__
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    57
#  endif
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    58
#endif
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    59
#if defined(__MSDOS__) && !defined(MSDOS)
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    60
#  define MSDOS
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    61
#endif
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    62
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    63
/* WinCE doesn't have errno.h */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    64
#ifdef _WIN32_WCE
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    65
#  define NO_ERRNO_H
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    66
#endif
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    67
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    68
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    69
/*
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    70
 * Compile with -DMAXSEG_64K if the alloc function cannot allocate more
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    71
 * than 64k bytes at a time (needed on systems with 16-bit int).
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    72
 */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    73
#if defined(MSDOS) && !defined(__32BIT__)
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    74
#  define MAXSEG_64K
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    75
#endif
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    76
#ifdef MSDOS
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    77
#  define UNALIGNED_OK
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    78
#endif
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    79
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    80
#if (defined(MSDOS) || defined(_WINDOWS) || defined(WIN32))  && !defined(STDC)
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    81
#  define STDC
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    82
#endif
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    83
#if defined(__STDC__) || defined(__cplusplus) || defined(__OS2__)
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    84
#  ifndef STDC
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    85
#    define STDC
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    86
#  endif
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    87
#endif
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    88
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    89
#ifndef STDC
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    90
#  ifndef const /* cannot use !defined(STDC) && !defined(const) on Mac */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    91
#    define const
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    92
#  endif
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    93
#endif
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    94
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    95
/* Some Mac compilers merge all .h files incorrectly: */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    96
#if defined(__MWERKS__) || defined(applec) ||defined(THINK_C) ||defined(__SC__)
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    97
#  define NO_DUMMY_DECL
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    98
#endif
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
    99
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   100
/* Old Borland C and LCC incorrectly complains about missing returns: */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   101
#if defined(__BORLANDC__) && (__BORLANDC__ < 0x500)
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   102
#  define NEED_DUMMY_RETURN
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   103
#endif
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   104
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   105
#if defined(__LCC__)
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   106
#  define  NEED_DUMMY_RETURN
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   107
#endif
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   108
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   109
/* Maximum value for memLevel in deflateInit2 */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   110
#ifndef MAX_MEM_LEVEL
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   111
#  ifdef MAXSEG_64K
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   112
#    define MAX_MEM_LEVEL 8
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   113
#  else
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   114
#    define MAX_MEM_LEVEL 9
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   115
#  endif
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   116
#endif
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   117
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   118
/* Maximum value for windowBits in deflateInit2 and inflateInit2.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   119
 * WARNING: reducing MAX_WBITS makes minigzip unable to extract .gz files
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   120
 * created by gzip. (Files created by minigzip can still be extracted by
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   121
 * gzip.)
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   122
 */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   123
#ifndef MAX_WBITS
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   124
#  define MAX_WBITS   15 /* 32K LZ77 window */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   125
#endif
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   126
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   127
/* The memory requirements for deflate are (in bytes):
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   128
            (1 << (windowBits+2)) +  (1 << (memLevel+9))
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   129
 that is: 128K for windowBits=15  +  128K for memLevel = 8  (default values)
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   130
 plus a few kilobytes for small objects. For example, if you want to reduce
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   131
 the default memory requirements from 256K to 128K, compile with
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   132
     make CFLAGS="-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7"
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   133
 Of course this will generally degrade compression (there's no free lunch).
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   134
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   135
   The memory requirements for inflate are (in bytes) 1 << windowBits
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   136
 that is, 32K for windowBits=15 (default value) plus a few kilobytes
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   137
 for small objects.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   138
*/
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   139
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   140
                        /* Type declarations */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   141
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   142
#ifndef OF /* function prototypes */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   143
#  ifdef STDC
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   144
#    define OF(args)  args
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   145
#  else
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   146
#    define OF(args)  ()
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   147
#  endif
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   148
#endif
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   149
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   150
/* The following definitions for FAR are needed only for MSDOS mixed
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   151
 * model programming (small or medium model with some far allocations).
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   152
 * This was tested only with MSC; for other MSDOS compilers you may have
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   153
 * to define NO_MEMCPY in zutil.h.  If you don't need the mixed model,
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   154
 * just define FAR to be empty.
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   155
 */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   156
#if (defined(M_I86SM) || defined(M_I86MM)) && !defined(__32BIT__)
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   157
   /* MSC small or medium model */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   158
#  define SMALL_MEDIUM
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   159
#  ifdef _MSC_VER
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   160
#    define FAR _far
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   161
#  else
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   162
#    define FAR far
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   163
#  endif
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   164
#endif
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   165
#if defined(__BORLANDC__) && (defined(__SMALL__) || defined(__MEDIUM__))
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   166
#  ifndef __32BIT__
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   167
#    define SMALL_MEDIUM
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   168
#    define FAR _far
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   169
#  endif
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   170
#endif
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   171
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   172
/* Compile with -DZLIB_DLL for Windows DLL support */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   173
#if defined(ZLIB_DLL)
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   174
#  if defined(_WINDOWS) || defined(WINDOWS)
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   175
#    ifdef FAR
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   176
#      undef FAR
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   177
#    endif
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   178
#    include <windows.h>
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   179
#    define ZEXPORT(x)  x WINAPI
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   180
#    ifdef WIN32
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   181
#      define ZEXPORTVA(x)  x WINAPIV
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   182
#    else
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   183
#      define ZEXPORTVA(x)  x FAR _cdecl _export
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   184
#    endif
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   185
#  endif
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   186
#  if defined (__BORLANDC__)
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   187
#    if (__BORLANDC__ >= 0x0500) && defined (WIN32)
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   188
#      include <windows.h>
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   189
#      define ZEXPORT(x) x __declspec(dllexport) WINAPI
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   190
#      define ZEXPORTRVA(x)  x __declspec(dllexport) WINAPIV
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   191
#    else
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   192
#      if defined (_Windows) && defined (__DLL__)
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   193
#        define ZEXPORT(x) x _export
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   194
#        define ZEXPORTVA(x) x _export
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   195
#      endif
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   196
#    endif
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   197
#  endif
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   198
#endif
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   199
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   200
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   201
#ifndef ZEXPORT
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   202
#  define ZEXPORT(x)   static x
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   203
#endif
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   204
#ifndef ZEXPORTVA
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   205
#  define ZEXPORTVA(x)   static x
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   206
#endif
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   207
#ifndef ZEXTERN
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   208
#  define ZEXTERN(x) static x
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   209
#endif
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   210
#ifndef ZEXTERNDEF
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   211
#  define ZEXTERNDEF(x)  static x
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   212
#endif
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   213
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   214
#ifndef FAR
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   215
#   define FAR
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   216
#endif
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   217
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   218
#if !defined(MACOS) && !defined(TARGET_OS_MAC)
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   219
typedef unsigned char  Byte;  /* 8 bits */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   220
#endif
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   221
typedef unsigned int   uInt;  /* 16 bits or more */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   222
typedef unsigned long  uLong; /* 32 bits or more */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   223
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   224
#ifdef SMALL_MEDIUM
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   225
   /* Borland C/C++ and some old MSC versions ignore FAR inside typedef */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   226
#  define Bytef Byte FAR
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   227
#else
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   228
   typedef Byte  FAR Bytef;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   229
#endif
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   230
typedef char  FAR charf;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   231
typedef int   FAR intf;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   232
typedef uInt  FAR uIntf;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   233
typedef uLong FAR uLongf;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   234
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   235
#ifdef STDC
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   236
   typedef void FAR *voidpf;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   237
   typedef void     *voidp;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   238
#else
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   239
   typedef Byte FAR *voidpf;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   240
   typedef Byte     *voidp;
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   241
#endif
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   242
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   243
#ifdef HAVE_UNISTD_H
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   244
#  include <sys/types.h> /* for off_t */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   245
#  include <unistd.h>    /* for SEEK_* and off_t */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   246
#  define z_off_t  off_t
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   247
#endif
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   248
#ifndef SEEK_SET
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   249
#  define SEEK_SET        0       /* Seek from beginning of file.  */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   250
#  define SEEK_CUR        1       /* Seek from current position.  */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   251
#  define SEEK_END        2       /* Set file pointer to EOF plus "offset" */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   252
#endif
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   253
#ifndef z_off_t
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   254
#  define  z_off_t long
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   255
#endif
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   256
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   257
/* MVS linker does not support external names larger than 8 bytes */
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   258
#if defined(__MVS__)
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   259
#   pragma map(deflateInit_,"DEIN")
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   260
#   pragma map(deflateInit2_,"DEIN2")
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   261
#   pragma map(deflateEnd,"DEEND")
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   262
#   pragma map(inflateInit_,"ININ")
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   263
#   pragma map(inflateInit2_,"ININ2")
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   264
#   pragma map(inflateEnd,"INEND")
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   265
#   pragma map(inflateSync,"INSY")
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   266
#   pragma map(inflateSetDictionary,"INSEDI")
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   267
#   pragma map(inflate_blocks,"INBL")
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   268
#   pragma map(inflate_blocks_new,"INBLNE")
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   269
#   pragma map(inflate_blocks_free,"INBLFR")
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   270
#   pragma map(inflate_blocks_reset,"INBLRE")
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   271
#   pragma map(inflate_codes_free,"INCOFR")
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   272
#   pragma map(inflate_codes,"INCO")
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   273
#   pragma map(inflate_fast,"INFA")
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   274
#   pragma map(inflate_flush,"INFLU")
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   275
#   pragma map(inflate_mask,"INMA")
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   276
#   pragma map(inflate_set_dictionary,"INSEDI2")
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   277
#   pragma map(inflate_copyright,"INCOPY")
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   278
#   pragma map(inflate_trees_bits,"INTRBI")
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   279
#   pragma map(inflate_trees_dynamic,"INTRDY")
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   280
#   pragma map(inflate_trees_fixed,"INTRFI")
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   281
#   pragma map(inflate_trees_free,"INTRFR")
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   282
#endif
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   283
88f2e05288ba aaand let's add freetype as well while we are at it
koda
parents:
diff changeset
   284
#endif /* _ZCONF_H */