From df4326f0a739fc421855a86a1b8f68d74301c026 Mon Sep 17 00:00:00 2001 From: Max Maischein Date: Sun, 19 Feb 2012 10:41:21 +0100 Subject: #define-hack-fix for MinGW-gcc / Win32 --- cpan/Compress-Raw-Zlib/zlib-src/zconf.h | 8 +++++++- cpan/Compress-Raw-Zlib/zlib-src/zutil.h | 2 ++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/cpan/Compress-Raw-Zlib/zlib-src/zconf.h b/cpan/Compress-Raw-Zlib/zlib-src/zconf.h index 51c80ac144..e065e59ea9 100644 --- a/cpan/Compress-Raw-Zlib/zlib-src/zconf.h +++ b/cpan/Compress-Raw-Zlib/zlib-src/zconf.h @@ -440,7 +440,13 @@ typedef uLong FAR uLongf; # define z_off64_t off64_t #else # if defined(_WIN32) -# define z_off64_t __int64 +# if defined(__GNUC__) +#include "stdint.h" +#define HAVE_PTRDIFF +# define z_off64_t int64_t +# else +# define z_off64_t __int64 +# endif # else # define z_off64_t z_off_t #endif diff --git a/cpan/Compress-Raw-Zlib/zlib-src/zutil.h b/cpan/Compress-Raw-Zlib/zlib-src/zutil.h index dff1112feb..ceee2fbbfc 100644 --- a/cpan/Compress-Raw-Zlib/zlib-src/zutil.h +++ b/cpan/Compress-Raw-Zlib/zlib-src/zutil.h @@ -30,8 +30,10 @@ #endif #ifdef Z_SOLO +#ifndef HAVE_PTRDIFF typedef long ptrdiff_t; /* guess -- will be caught if guess is wrong */ #endif +#endif #ifndef local # define local static -- cgit v1.2.1