? mps-ftgzip_pt1.diff Index: src/gzip/ftgzip.c =================================================================== RCS file: /sources/freetype/freetype2/src/gzip/ftgzip.c,v retrieving revision 1.25 diff -u -r1.25 ftgzip.c --- src/gzip/ftgzip.c 13 Jan 2009 17:34:47 -0000 1.25 +++ src/gzip/ftgzip.c 2 Feb 2009 14:12:41 -0000 @@ -54,7 +54,6 @@ /* original ZLib. */ #define NO_DUMMY_DECL -#define MY_ZCALLOC #include "zlib.h" @@ -117,7 +116,8 @@ } -#ifndef FT_CONFIG_OPTION_SYSTEM_ZLIB + /* zutil.c has several system-specific zcalloc */ +#if !defined( FT_CONFIG_OPTION_SYSTEM_ZLIB ) && !defined( MY_ZCALLOC ) local voidpf zcalloc ( voidpf opaque, @@ -134,7 +134,7 @@ ft_gzip_free( (FT_Memory)opaque, ptr ); } -#endif /* !SYSTEM_ZLIB */ +#endif /* !SYSTEM_ZLIB && !MY_ZCALLOC */ /***************************************************************************/ Index: src/gzip/zutil.c =================================================================== RCS file: /sources/freetype/freetype2/src/gzip/zutil.c,v retrieving revision 1.3 diff -u -r1.3 zutil.c --- src/gzip/zutil.c 29 Apr 2006 07:31:16 -0000 1.3 +++ src/gzip/zutil.c 2 Feb 2009 14:12:42 -0000 @@ -152,30 +152,3 @@ } #endif /* MSC */ - - -#ifndef MY_ZCALLOC /* Any system without a special alloc function */ - -#ifndef STDC -extern voidp ft_scalloc OF((uInt items, uInt size)); -extern void ft_sfree OF((voidpf ptr)); -#endif - -voidpf zcalloc (opaque, items, size) - voidpf opaque; - unsigned items; - unsigned size; -{ - if (opaque) items += size - size; /* make compiler happy */ - return (voidpf)ft_scalloc(items, size); -} - -void zcfree (opaque, ptr) - voidpf opaque; - voidpf ptr; -{ - ft_sfree(ptr); - if (opaque) return; /* make compiler happy */ -} - -#endif /* MY_ZCALLOC */