OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-dev/] [fsf-gcc-snapshot-1-mar-12/] [or1k-gcc/] [zlib/] [zconf.h] - Diff between revs 745 and 783

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 745 Rev 783
/* zconf.h -- configuration of the zlib compression library
/* zconf.h -- configuration of the zlib compression library
 * Copyright (C) 1995-2005 Jean-loup Gailly.
 * Copyright (C) 1995-2005 Jean-loup Gailly.
 * For conditions of distribution and use, see copyright notice in zlib.h
 * For conditions of distribution and use, see copyright notice in zlib.h
 */
 */
 
 
/* @(#) $Id: zconf.h,v 1.1.1.2 2002/03/11 21:53:27 tromey Exp $ */
/* @(#) $Id: zconf.h,v 1.1.1.2 2002/03/11 21:53:27 tromey Exp $ */
 
 
#ifndef ZCONF_H
#ifndef ZCONF_H
#define ZCONF_H
#define ZCONF_H
 
 
/*
/*
 * If you *really* need a unique prefix for all types and library functions,
 * If you *really* need a unique prefix for all types and library functions,
 * compile with -DZ_PREFIX. The "standard" zlib should be compiled without it.
 * compile with -DZ_PREFIX. The "standard" zlib should be compiled without it.
 */
 */
#ifdef Z_PREFIX
#ifdef Z_PREFIX
#  define deflateInit_          z_deflateInit_
#  define deflateInit_          z_deflateInit_
#  define deflate               z_deflate
#  define deflate               z_deflate
#  define deflateEnd            z_deflateEnd
#  define deflateEnd            z_deflateEnd
#  define inflateInit_          z_inflateInit_
#  define inflateInit_          z_inflateInit_
#  define inflate               z_inflate
#  define inflate               z_inflate
#  define inflateEnd            z_inflateEnd
#  define inflateEnd            z_inflateEnd
#  define deflateInit2_         z_deflateInit2_
#  define deflateInit2_         z_deflateInit2_
#  define deflateSetDictionary  z_deflateSetDictionary
#  define deflateSetDictionary  z_deflateSetDictionary
#  define deflateCopy           z_deflateCopy
#  define deflateCopy           z_deflateCopy
#  define deflateReset          z_deflateReset
#  define deflateReset          z_deflateReset
#  define deflateParams         z_deflateParams
#  define deflateParams         z_deflateParams
#  define deflateBound          z_deflateBound
#  define deflateBound          z_deflateBound
#  define deflatePrime          z_deflatePrime
#  define deflatePrime          z_deflatePrime
#  define inflateInit2_         z_inflateInit2_
#  define inflateInit2_         z_inflateInit2_
#  define inflateSetDictionary  z_inflateSetDictionary
#  define inflateSetDictionary  z_inflateSetDictionary
#  define inflateSync           z_inflateSync
#  define inflateSync           z_inflateSync
#  define inflateSyncPoint      z_inflateSyncPoint
#  define inflateSyncPoint      z_inflateSyncPoint
#  define inflateCopy           z_inflateCopy
#  define inflateCopy           z_inflateCopy
#  define inflateReset          z_inflateReset
#  define inflateReset          z_inflateReset
#  define inflateBack           z_inflateBack
#  define inflateBack           z_inflateBack
#  define inflateBackEnd        z_inflateBackEnd
#  define inflateBackEnd        z_inflateBackEnd
#  define compress              z_compress
#  define compress              z_compress
#  define compress2             z_compress2
#  define compress2             z_compress2
#  define compressBound         z_compressBound
#  define compressBound         z_compressBound
#  define uncompress            z_uncompress
#  define uncompress            z_uncompress
#  define adler32               z_adler32
#  define adler32               z_adler32
#  define crc32                 z_crc32
#  define crc32                 z_crc32
#  define get_crc_table         z_get_crc_table
#  define get_crc_table         z_get_crc_table
#  define zError                z_zError
#  define zError                z_zError
 
 
#  define alloc_func            z_alloc_func
#  define alloc_func            z_alloc_func
#  define free_func             z_free_func
#  define free_func             z_free_func
#  define in_func               z_in_func
#  define in_func               z_in_func
#  define out_func              z_out_func
#  define out_func              z_out_func
#  define Byte                  z_Byte
#  define Byte                  z_Byte
#  define uInt                  z_uInt
#  define uInt                  z_uInt
#  define uLong                 z_uLong
#  define uLong                 z_uLong
#  define Bytef                 z_Bytef
#  define Bytef                 z_Bytef
#  define charf                 z_charf
#  define charf                 z_charf
#  define intf                  z_intf
#  define intf                  z_intf
#  define uIntf                 z_uIntf
#  define uIntf                 z_uIntf
#  define uLongf                z_uLongf
#  define uLongf                z_uLongf
#  define voidpf                z_voidpf
#  define voidpf                z_voidpf
#  define voidp                 z_voidp
#  define voidp                 z_voidp
#endif
#endif
 
 
#if defined(__MSDOS__) && !defined(MSDOS)
#if defined(__MSDOS__) && !defined(MSDOS)
#  define MSDOS
#  define MSDOS
#endif
#endif
#if (defined(OS_2) || defined(__OS2__)) && !defined(OS2)
#if (defined(OS_2) || defined(__OS2__)) && !defined(OS2)
#  define OS2
#  define OS2
#endif
#endif
#if defined(_WINDOWS) && !defined(WINDOWS)
#if defined(_WINDOWS) && !defined(WINDOWS)
#  define WINDOWS
#  define WINDOWS
#endif
#endif
#if defined(_WIN32) || defined(_WIN32_WCE) || defined(__WIN32__)
#if defined(_WIN32) || defined(_WIN32_WCE) || defined(__WIN32__)
#  ifndef WIN32
#  ifndef WIN32
#    define WIN32
#    define WIN32
#  endif
#  endif
#endif
#endif
#if (defined(MSDOS) || defined(OS2) || defined(WINDOWS)) && !defined(WIN32)
#if (defined(MSDOS) || defined(OS2) || defined(WINDOWS)) && !defined(WIN32)
#  if !defined(__GNUC__) && !defined(__FLAT__) && !defined(__386__)
#  if !defined(__GNUC__) && !defined(__FLAT__) && !defined(__386__)
#    ifndef SYS16BIT
#    ifndef SYS16BIT
#      define SYS16BIT
#      define SYS16BIT
#    endif
#    endif
#  endif
#  endif
#endif
#endif
 
 
/*
/*
 * Compile with -DMAXSEG_64K if the alloc function cannot allocate more
 * Compile with -DMAXSEG_64K if the alloc function cannot allocate more
 * than 64k bytes at a time (needed on systems with 16-bit int).
 * than 64k bytes at a time (needed on systems with 16-bit int).
 */
 */
#ifdef SYS16BIT
#ifdef SYS16BIT
#  define MAXSEG_64K
#  define MAXSEG_64K
#endif
#endif
#ifdef MSDOS
#ifdef MSDOS
#  define UNALIGNED_OK
#  define UNALIGNED_OK
#endif
#endif
 
 
#ifdef __STDC_VERSION__
#ifdef __STDC_VERSION__
#  ifndef STDC
#  ifndef STDC
#    define STDC
#    define STDC
#  endif
#  endif
#  if __STDC_VERSION__ >= 199901L
#  if __STDC_VERSION__ >= 199901L
#    ifndef STDC99
#    ifndef STDC99
#      define STDC99
#      define STDC99
#    endif
#    endif
#  endif
#  endif
#endif
#endif
#if !defined(STDC) && (defined(__STDC__) || defined(__cplusplus))
#if !defined(STDC) && (defined(__STDC__) || defined(__cplusplus))
#  define STDC
#  define STDC
#endif
#endif
#if !defined(STDC) && (defined(__GNUC__) || defined(__BORLANDC__))
#if !defined(STDC) && (defined(__GNUC__) || defined(__BORLANDC__))
#  define STDC
#  define STDC
#endif
#endif
#if !defined(STDC) && (defined(MSDOS) || defined(WINDOWS) || defined(WIN32))
#if !defined(STDC) && (defined(MSDOS) || defined(WINDOWS) || defined(WIN32))
#  define STDC
#  define STDC
#endif
#endif
#if !defined(STDC) && (defined(OS2) || defined(__HOS_AIX__))
#if !defined(STDC) && (defined(OS2) || defined(__HOS_AIX__))
#  define STDC
#  define STDC
#endif
#endif
 
 
#if defined(__OS400__) && !defined(STDC)    /* iSeries (formerly AS/400). */
#if defined(__OS400__) && !defined(STDC)    /* iSeries (formerly AS/400). */
#  define STDC
#  define STDC
#endif
#endif
 
 
#ifndef STDC
#ifndef STDC
#  ifndef const /* cannot use !defined(STDC) && !defined(const) on Mac */
#  ifndef const /* cannot use !defined(STDC) && !defined(const) on Mac */
#    define const       /* note: need a more gentle solution here */
#    define const       /* note: need a more gentle solution here */
#  endif
#  endif
#endif
#endif
 
 
/* Some Mac compilers merge all .h files incorrectly: */
/* Some Mac compilers merge all .h files incorrectly: */
#if defined(__MWERKS__)||defined(applec)||defined(THINK_C)||defined(__SC__)
#if defined(__MWERKS__)||defined(applec)||defined(THINK_C)||defined(__SC__)
#  define NO_DUMMY_DECL
#  define NO_DUMMY_DECL
#endif
#endif
 
 
/* Maximum value for memLevel in deflateInit2 */
/* Maximum value for memLevel in deflateInit2 */
#ifndef MAX_MEM_LEVEL
#ifndef MAX_MEM_LEVEL
#  ifdef MAXSEG_64K
#  ifdef MAXSEG_64K
#    define MAX_MEM_LEVEL 8
#    define MAX_MEM_LEVEL 8
#  else
#  else
#    define MAX_MEM_LEVEL 9
#    define MAX_MEM_LEVEL 9
#  endif
#  endif
#endif
#endif
 
 
/* Maximum value for windowBits in deflateInit2 and inflateInit2.
/* Maximum value for windowBits in deflateInit2 and inflateInit2.
 * WARNING: reducing MAX_WBITS makes minigzip unable to extract .gz files
 * WARNING: reducing MAX_WBITS makes minigzip unable to extract .gz files
 * created by gzip. (Files created by minigzip can still be extracted by
 * created by gzip. (Files created by minigzip can still be extracted by
 * gzip.)
 * gzip.)
 */
 */
#ifndef MAX_WBITS
#ifndef MAX_WBITS
#  define MAX_WBITS   15 /* 32K LZ77 window */
#  define MAX_WBITS   15 /* 32K LZ77 window */
#endif
#endif
 
 
/* The memory requirements for deflate are (in bytes):
/* The memory requirements for deflate are (in bytes):
            (1 << (windowBits+2)) +  (1 << (memLevel+9))
            (1 << (windowBits+2)) +  (1 << (memLevel+9))
 that is: 128K for windowBits=15  +  128K for memLevel = 8  (default values)
 that is: 128K for windowBits=15  +  128K for memLevel = 8  (default values)
 plus a few kilobytes for small objects. For example, if you want to reduce
 plus a few kilobytes for small objects. For example, if you want to reduce
 the default memory requirements from 256K to 128K, compile with
 the default memory requirements from 256K to 128K, compile with
     make CFLAGS="-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7"
     make CFLAGS="-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7"
 Of course this will generally degrade compression (there's no free lunch).
 Of course this will generally degrade compression (there's no free lunch).
 
 
   The memory requirements for inflate are (in bytes) 1 << windowBits
   The memory requirements for inflate are (in bytes) 1 << windowBits
 that is, 32K for windowBits=15 (default value) plus a few kilobytes
 that is, 32K for windowBits=15 (default value) plus a few kilobytes
 for small objects.
 for small objects.
*/
*/
 
 
                        /* Type declarations */
                        /* Type declarations */
 
 
#ifndef OF /* function prototypes */
#ifndef OF /* function prototypes */
#  ifdef STDC
#  ifdef STDC
#    define OF(args)  args
#    define OF(args)  args
#  else
#  else
#    define OF(args)  ()
#    define OF(args)  ()
#  endif
#  endif
#endif
#endif
 
 
/* The following definitions for FAR are needed only for MSDOS mixed
/* The following definitions for FAR are needed only for MSDOS mixed
 * model programming (small or medium model with some far allocations).
 * model programming (small or medium model with some far allocations).
 * This was tested only with MSC; for other MSDOS compilers you may have
 * This was tested only with MSC; for other MSDOS compilers you may have
 * to define NO_MEMCPY in zutil.h.  If you don't need the mixed model,
 * to define NO_MEMCPY in zutil.h.  If you don't need the mixed model,
 * just define FAR to be empty.
 * just define FAR to be empty.
 */
 */
#ifdef SYS16BIT
#ifdef SYS16BIT
#  if defined(M_I86SM) || defined(M_I86MM)
#  if defined(M_I86SM) || defined(M_I86MM)
     /* MSC small or medium model */
     /* MSC small or medium model */
#    define SMALL_MEDIUM
#    define SMALL_MEDIUM
#    ifdef _MSC_VER
#    ifdef _MSC_VER
#      define FAR _far
#      define FAR _far
#    else
#    else
#      define FAR far
#      define FAR far
#    endif
#    endif
#  endif
#  endif
#  if (defined(__SMALL__) || defined(__MEDIUM__))
#  if (defined(__SMALL__) || defined(__MEDIUM__))
     /* Turbo C small or medium model */
     /* Turbo C small or medium model */
#    define SMALL_MEDIUM
#    define SMALL_MEDIUM
#    ifdef __BORLANDC__
#    ifdef __BORLANDC__
#      define FAR _far
#      define FAR _far
#    else
#    else
#      define FAR far
#      define FAR far
#    endif
#    endif
#  endif
#  endif
#endif
#endif
 
 
#if defined(WINDOWS) || defined(WIN32)
#if defined(WINDOWS) || defined(WIN32)
   /* If building or using zlib as a DLL, define ZLIB_DLL.
   /* If building or using zlib as a DLL, define ZLIB_DLL.
    * This is not mandatory, but it offers a little performance increase.
    * This is not mandatory, but it offers a little performance increase.
    */
    */
#  ifdef ZLIB_DLL
#  ifdef ZLIB_DLL
#    if defined(WIN32) && (!defined(__BORLANDC__) || (__BORLANDC__ >= 0x500))
#    if defined(WIN32) && (!defined(__BORLANDC__) || (__BORLANDC__ >= 0x500))
#      ifdef ZLIB_INTERNAL
#      ifdef ZLIB_INTERNAL
#        define ZEXTERN extern __declspec(dllexport)
#        define ZEXTERN extern __declspec(dllexport)
#      else
#      else
#        define ZEXTERN extern __declspec(dllimport)
#        define ZEXTERN extern __declspec(dllimport)
#      endif
#      endif
#    endif
#    endif
#  endif  /* ZLIB_DLL */
#  endif  /* ZLIB_DLL */
   /* If building or using zlib with the WINAPI/WINAPIV calling convention,
   /* If building or using zlib with the WINAPI/WINAPIV calling convention,
    * define ZLIB_WINAPI.
    * define ZLIB_WINAPI.
    * Caution: the standard ZLIB1.DLL is NOT compiled using ZLIB_WINAPI.
    * Caution: the standard ZLIB1.DLL is NOT compiled using ZLIB_WINAPI.
    */
    */
#  ifdef ZLIB_WINAPI
#  ifdef ZLIB_WINAPI
#    ifdef FAR
#    ifdef FAR
#      undef FAR
#      undef FAR
#    endif
#    endif
#    include <windows.h>
#    include <windows.h>
     /* No need for _export, use ZLIB.DEF instead. */
     /* No need for _export, use ZLIB.DEF instead. */
     /* For complete Windows compatibility, use WINAPI, not __stdcall. */
     /* For complete Windows compatibility, use WINAPI, not __stdcall. */
#    define ZEXPORT WINAPI
#    define ZEXPORT WINAPI
#    ifdef WIN32
#    ifdef WIN32
#      define ZEXPORTVA WINAPIV
#      define ZEXPORTVA WINAPIV
#    else
#    else
#      define ZEXPORTVA FAR CDECL
#      define ZEXPORTVA FAR CDECL
#    endif
#    endif
#  endif
#  endif
#endif
#endif
 
 
#if defined (__BEOS__)
#if defined (__BEOS__)
#  ifdef ZLIB_DLL
#  ifdef ZLIB_DLL
#    ifdef ZLIB_INTERNAL
#    ifdef ZLIB_INTERNAL
#      define ZEXPORT   __declspec(dllexport)
#      define ZEXPORT   __declspec(dllexport)
#      define ZEXPORTVA __declspec(dllexport)
#      define ZEXPORTVA __declspec(dllexport)
#    else
#    else
#      define ZEXPORT   __declspec(dllimport)
#      define ZEXPORT   __declspec(dllimport)
#      define ZEXPORTVA __declspec(dllimport)
#      define ZEXPORTVA __declspec(dllimport)
#    endif
#    endif
#  endif
#  endif
#endif
#endif
 
 
#ifndef ZEXTERN
#ifndef ZEXTERN
#  define ZEXTERN extern
#  define ZEXTERN extern
#endif
#endif
#ifndef ZEXPORT
#ifndef ZEXPORT
#  define ZEXPORT
#  define ZEXPORT
#endif
#endif
#ifndef ZEXPORTVA
#ifndef ZEXPORTVA
#  define ZEXPORTVA
#  define ZEXPORTVA
#endif
#endif
 
 
#ifndef FAR
#ifndef FAR
#  define FAR
#  define FAR
#endif
#endif
 
 
#if !defined(__MACTYPES__)
#if !defined(__MACTYPES__)
typedef unsigned char  Byte;  /* 8 bits */
typedef unsigned char  Byte;  /* 8 bits */
#endif
#endif
typedef unsigned int   uInt;  /* 16 bits or more */
typedef unsigned int   uInt;  /* 16 bits or more */
typedef unsigned long  uLong; /* 32 bits or more */
typedef unsigned long  uLong; /* 32 bits or more */
 
 
#ifdef SMALL_MEDIUM
#ifdef SMALL_MEDIUM
   /* Borland C/C++ and some old MSC versions ignore FAR inside typedef */
   /* Borland C/C++ and some old MSC versions ignore FAR inside typedef */
#  define Bytef Byte FAR
#  define Bytef Byte FAR
#else
#else
   typedef Byte  FAR Bytef;
   typedef Byte  FAR Bytef;
#endif
#endif
typedef char  FAR charf;
typedef char  FAR charf;
typedef int   FAR intf;
typedef int   FAR intf;
typedef uInt  FAR uIntf;
typedef uInt  FAR uIntf;
typedef uLong FAR uLongf;
typedef uLong FAR uLongf;
 
 
#ifdef STDC
#ifdef STDC
   typedef void const *voidpc;
   typedef void const *voidpc;
   typedef void FAR   *voidpf;
   typedef void FAR   *voidpf;
   typedef void       *voidp;
   typedef void       *voidp;
#else
#else
   typedef Byte const *voidpc;
   typedef Byte const *voidpc;
   typedef Byte FAR   *voidpf;
   typedef Byte FAR   *voidpf;
   typedef Byte       *voidp;
   typedef Byte       *voidp;
#endif
#endif
 
 
#if 0           /* HAVE_UNISTD_H -- this line is updated by ./configure */
#if 0           /* HAVE_UNISTD_H -- this line is updated by ./configure */
#  include <sys/types.h> /* for off_t */
#  include <sys/types.h> /* for off_t */
#  include <unistd.h>    /* for SEEK_* and off_t */
#  include <unistd.h>    /* for SEEK_* and off_t */
#  ifdef VMS
#  ifdef VMS
#    include <unixio.h>   /* for off_t */
#    include <unixio.h>   /* for off_t */
#  endif
#  endif
#  define z_off_t off_t
#  define z_off_t off_t
#endif
#endif
#ifndef SEEK_SET
#ifndef SEEK_SET
#  define SEEK_SET        0       /* Seek from beginning of file.  */
#  define SEEK_SET        0       /* Seek from beginning of file.  */
#  define SEEK_CUR        1       /* Seek from current position.  */
#  define SEEK_CUR        1       /* Seek from current position.  */
#  define SEEK_END        2       /* Set file pointer to EOF plus "offset" */
#  define SEEK_END        2       /* Set file pointer to EOF plus "offset" */
#endif
#endif
#ifndef z_off_t
#ifndef z_off_t
#  define z_off_t long
#  define z_off_t long
#endif
#endif
 
 
#if defined(__OS400__)
#if defined(__OS400__)
#  define NO_vsnprintf
#  define NO_vsnprintf
#endif
#endif
 
 
#if defined(__MVS__)
#if defined(__MVS__)
#  define NO_vsnprintf
#  define NO_vsnprintf
#  ifdef FAR
#  ifdef FAR
#    undef FAR
#    undef FAR
#  endif
#  endif
#endif
#endif
 
 
/* MVS linker does not support external names larger than 8 bytes */
/* MVS linker does not support external names larger than 8 bytes */
#if defined(__MVS__)
#if defined(__MVS__)
#   pragma map(deflateInit_,"DEIN")
#   pragma map(deflateInit_,"DEIN")
#   pragma map(deflateInit2_,"DEIN2")
#   pragma map(deflateInit2_,"DEIN2")
#   pragma map(deflateEnd,"DEEND")
#   pragma map(deflateEnd,"DEEND")
#   pragma map(deflateBound,"DEBND")
#   pragma map(deflateBound,"DEBND")
#   pragma map(inflateInit_,"ININ")
#   pragma map(inflateInit_,"ININ")
#   pragma map(inflateInit2_,"ININ2")
#   pragma map(inflateInit2_,"ININ2")
#   pragma map(inflateEnd,"INEND")
#   pragma map(inflateEnd,"INEND")
#   pragma map(inflateSync,"INSY")
#   pragma map(inflateSync,"INSY")
#   pragma map(inflateSetDictionary,"INSEDI")
#   pragma map(inflateSetDictionary,"INSEDI")
#   pragma map(compressBound,"CMBND")
#   pragma map(compressBound,"CMBND")
#   pragma map(inflate_table,"INTABL")
#   pragma map(inflate_table,"INTABL")
#   pragma map(inflate_fast,"INFA")
#   pragma map(inflate_fast,"INFA")
#   pragma map(inflate_copyright,"INCOPY")
#   pragma map(inflate_copyright,"INCOPY")
#endif
#endif
 
 
/* Solaris 2.5.1 doesn't have vsnprintf */
/* Solaris 2.5.1 doesn't have vsnprintf */
#if defined(__sun) && defined(__svr4__)
#if defined(__sun) && defined(__svr4__)
#include <sys/feature_tests.h>
#include <sys/feature_tests.h>
#if _XOPEN_VERSION < 3
#if _XOPEN_VERSION < 3
#define NO_vsnprintf
#define NO_vsnprintf
#endif
#endif
#endif
#endif
 
 
/* Tru64 UNIX V4.0 neither */
/* Tru64 UNIX V4.0 neither */
#if defined(__alpha) && defined(__osf__)
#if defined(__alpha) && defined(__osf__)
#include <unistd.h>
#include <unistd.h>
#if _XOPEN_VERSION < 500
#if _XOPEN_VERSION < 500
#define NO_vsnprintf
#define NO_vsnprintf
#endif
#endif
#endif
#endif
 
 
#endif /* ZCONF_H */
#endif /* ZCONF_H */
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.