Skip to content

Commit

Permalink
Remedy conflict between libzip and minizip zip.h.
Browse files Browse the repository at this point in the history
minizip.pc.in would add @include@/minizip to the include path,
which would permit simply #include <zip.h> to use minizip. However
that conflicts with the zip.h from libzip that is put in the root
include directory. This now does not add /minizip to the include
path. Now when using pkg-config, #include <minizip/zip.h> must be
used, where #include <zip.h> would be used for libzip. This is an
incompatible change with the previous state. Users of minizip and
pkg-config will need to update their code. #include <unzip.h> will
need to be updated to #include <minizip/unzip.h> as well.
  • Loading branch information
madler committed Jun 4, 2024
1 parent 0f3b7b9 commit 7e6f078
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/minizip/minizip.pc.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@/minizip
includedir=@includedir@

Name: minizip
Description: Minizip zip file manipulation library
Expand Down

0 comments on commit 7e6f078

Please sign in to comment.