[Zlib-devel] Possible typo in zlib.h
    İsmail Dönmez 
    ismail at namtrac.org
       
    Sat Jun 25 11:35:43 EDT 2011
    
    
  
Hi;
On Sat, Jun 25, 2011 at 5:23 PM, <jbowler at acm.org> wrote:
> From: zlib-devel-bounces at madler.net [mailto:zlib-devel-bounces at madler.net]
> On Behalf Of Ismail Dönmez
> >I believe the correct code should be
> >
> >#  ifndef _LARGEFILE64_SOURCE
> >     ZEXTERN gzFile ZEXPORT gzopen64 OF((const char *, const char *));
>
> That looks like zlib 1.2.4; this is (should be) fixed in zlib 1.2.5.
>  (#ifndef isn't enough.)
>
zlib 1.2.5 says;
#  ifdef _LARGEFILE64_SOURCE
     ZEXTERN gzFile ZEXPORT gzopen64 OF((const char *, const char *));
     ZEXTERN z_off_t ZEXPORT gzseek64 OF((gzFile, z_off_t, int));
     ZEXTERN z_off_t ZEXPORT gztell64 OF((gzFile));
     ZEXTERN z_off_t ZEXPORT gzoffset64 OF((gzFile));
     ZEXTERN uLong ZEXPORT adler32_combine64 OF((uLong, uLong, z_off_t));
     ZEXTERN uLong ZEXPORT crc32_combine64 OF((uLong, uLong, z_off_t));
#  endif
So you mean ifdef is correct here?
Regards,
ismail
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://madler.net/pipermail/zlib-devel_madler.net/attachments/20110625/4dc59b63/attachment.html>
    
    
More information about the Zlib-devel
mailing list