| Index: third_party/zlib/zutil.h
 | 
| ===================================================================
 | 
| --- third_party/zlib/zutil.h	(revision 113739)
 | 
| +++ third_party/zlib/zutil.h	(working copy)
 | 
| @@ -1,5 +1,5 @@
 | 
|  /* zutil.h -- internal interface and configuration of the compression library
 | 
| - * Copyright (C) 1995-2005 Jean-loup Gailly.
 | 
| + * Copyright (C) 1995-2010 Jean-loup Gailly.
 | 
|   * For conditions of distribution and use, see copyright notice in zlib.h
 | 
|   */
 | 
|  
 | 
| @@ -8,16 +8,21 @@
 | 
|     subject to change. Applications should only use zlib.h.
 | 
|   */
 | 
|  
 | 
| -/* @(#) $Id: zutil.h,v 3.10 2005/08/04 19:14:14 tor%cs.brown.edu Exp $ */
 | 
| +/* @(#) $Id$ */
 | 
|  
 | 
|  #ifndef ZUTIL_H
 | 
|  #define ZUTIL_H
 | 
|  
 | 
| -#define ZLIB_INTERNAL
 | 
| +#if ((__GNUC__-0) * 10 + __GNUC_MINOR__-0 >= 33) && !defined(NO_VIZ)
 | 
| +#  define ZLIB_INTERNAL __attribute__((visibility ("hidden")))
 | 
| +#else
 | 
| +#  define ZLIB_INTERNAL
 | 
| +#endif
 | 
| +
 | 
|  #include "zlib.h"
 | 
|  
 | 
|  #ifdef STDC
 | 
| -#  ifndef _WIN32_WCE
 | 
| +#  if !(defined(_WIN32_WCE) && defined(_MSC_VER))
 | 
|  #    include <stddef.h>
 | 
|  #  endif
 | 
|  #  include <string.h>
 | 
| @@ -89,7 +94,7 @@
 | 
|  #if defined(MSDOS) || (defined(WINDOWS) && !defined(WIN32))
 | 
|  #  define OS_CODE  0x00
 | 
|  #  if defined(__TURBOC__) || defined(__BORLANDC__)
 | 
| -#    if(__STDC__ == 1) && (defined(__LARGE__) || defined(__COMPACT__))
 | 
| +#    if (__STDC__ == 1) && (defined(__LARGE__) || defined(__COMPACT__))
 | 
|         /* Allow compilation with ANSI keywords only enabled */
 | 
|         void _Cdecl farfree( void *block );
 | 
|         void *_Cdecl farmalloc( unsigned long nbytes );
 | 
| @@ -118,7 +123,7 @@
 | 
|  #ifdef OS2
 | 
|  #  define OS_CODE  0x06
 | 
|  #  ifdef M_I86
 | 
| -     #include <malloc.h>
 | 
| +#    include <malloc.h>
 | 
|  #  endif
 | 
|  #endif
 | 
|  
 | 
| @@ -151,7 +156,7 @@
 | 
|  #  define fdopen(fd,mode) NULL /* No fdopen() */
 | 
|  #endif
 | 
|  
 | 
| -#if (defined(_MSC_VER) && (_MSC_VER > 600))
 | 
| +#if (defined(_MSC_VER) && (_MSC_VER > 600)) && !defined __INTERIX
 | 
|  #  if defined(_WIN32_WCE)
 | 
|  #    define fdopen(fd,mode) NULL /* No fdopen() */
 | 
|  #    ifndef _PTRDIFF_T_DEFINED
 | 
| @@ -163,6 +168,18 @@
 | 
|  #  endif
 | 
|  #endif
 | 
|  
 | 
| +#if defined(__BORLANDC__)
 | 
| +  #pragma warn -8004
 | 
| +  #pragma warn -8008
 | 
| +  #pragma warn -8066
 | 
| +#endif
 | 
| +
 | 
| +/* provide prototypes for these when building zlib without LFS */
 | 
| +#if !defined(_LARGEFILE64_SOURCE) || _LFS64_LARGEFILE-0 == 0
 | 
| +    ZEXTERN uLong ZEXPORT adler32_combine64 OF((uLong, uLong, z_off_t));
 | 
| +    ZEXTERN uLong ZEXPORT crc32_combine64 OF((uLong, uLong, z_off_t));
 | 
| +#endif
 | 
| +
 | 
|          /* common defaults */
 | 
|  
 | 
|  #ifndef OS_CODE
 | 
| @@ -197,7 +214,9 @@
 | 
|  #  ifdef WIN32
 | 
|       /* In Win32, vsnprintf is available as the "non-ANSI" _vsnprintf. */
 | 
|  #    if !defined(vsnprintf) && !defined(NO_vsnprintf)
 | 
| -#      define vsnprintf _vsnprintf
 | 
| +#      if !defined(_MSC_VER) || ( defined(_MSC_VER) && _MSC_VER < 1500 )
 | 
| +#         define vsnprintf _vsnprintf
 | 
| +#      endif
 | 
|  #    endif
 | 
|  #  endif
 | 
|  #  ifdef __SASC
 | 
| @@ -232,16 +251,16 @@
 | 
|  #    define zmemzero(dest, len) memset(dest, 0, len)
 | 
|  #  endif
 | 
|  #else
 | 
| -   extern void zmemcpy  OF((Bytef* dest, const Bytef* source, uInt len));
 | 
| -   extern int  zmemcmp  OF((const Bytef* s1, const Bytef* s2, uInt len));
 | 
| -   extern void zmemzero OF((Bytef* dest, uInt len));
 | 
| +   void ZLIB_INTERNAL zmemcpy OF((Bytef* dest, const Bytef* source, uInt len));
 | 
| +   int ZLIB_INTERNAL zmemcmp OF((const Bytef* s1, const Bytef* s2, uInt len));
 | 
| +   void ZLIB_INTERNAL zmemzero OF((Bytef* dest, uInt len));
 | 
|  #endif
 | 
|  
 | 
|  /* Diagnostic functions */
 | 
|  #ifdef DEBUG
 | 
|  #  include <stdio.h>
 | 
| -   extern int z_verbose;
 | 
| -   extern void z_error    OF((char *m));
 | 
| +   extern int ZLIB_INTERNAL z_verbose;
 | 
| +   extern void ZLIB_INTERNAL z_error OF((char *m));
 | 
|  #  define Assert(cond,msg) {if(!(cond)) z_error(msg);}
 | 
|  #  define Trace(x) {if (z_verbose>=0) fprintf x ;}
 | 
|  #  define Tracev(x) {if (z_verbose>0) fprintf x ;}
 | 
| @@ -258,8 +277,9 @@
 | 
|  #endif
 | 
|  
 | 
|  
 | 
| -voidpf zcalloc OF((voidpf opaque, unsigned items, unsigned size));
 | 
| -void   zcfree  OF((voidpf opaque, voidpf ptr));
 | 
| +voidpf ZLIB_INTERNAL zcalloc OF((voidpf opaque, unsigned items,
 | 
| +                        unsigned size));
 | 
| +void ZLIB_INTERNAL zcfree  OF((voidpf opaque, voidpf ptr));
 | 
|  
 | 
|  #define ZALLOC(strm, items, size) \
 | 
|             (*((strm)->zalloc))((strm)->opaque, (items), (size))
 | 
| 
 |