[PATCH 1/2] Fix compilation with older libzip

Thiago Macieira thiago at macieira.org
Fri Dec 6 09:28:24 UTC 2013


On sexta-feira, 6 de dezembro de 2013 11:23:53, Lubomir I. Ivanov wrote:
> i can see version macros in zipconf.h, which zip.h includes:
> 
> #define LIBZIP_VERSION "0.10"
> #define LIBZIP_VERSION_MAJOR 0
> #define LIBZIP_VERSION_MINOR 10
> #define LIBZIP_VERSION_MICRO 0

Oh, different file! Thanks for spotting it.

My MinGW version of libzip is so old it didn't have it. So I guess I can 
actually detect the presence of the new function by whether 
LIBZIP_VERSION_MAJOR is defined.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20131206/44f57334/attachment.sig>


More information about the subsurface mailing list