Skip to content

Commit

Permalink
Expose zlib constants for backwards compat #747
Browse files Browse the repository at this point in the history
Building a project that had an internal copy of minizip 1.x, but
preferring an external library, with minizip 4.x showed that the
compat layer was not exposing some constants from zlib that
minizip 1.x headers did.
  • Loading branch information
brad0 committed Dec 18, 2023
1 parent bacf512 commit 25ff004
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions mz_compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@

#include "mz.h"

#ifndef ZLIB_H
#include <zlib.h>
#endif

#ifdef __cplusplus
extern "C" {
#endif
Expand Down Expand Up @@ -147,9 +151,6 @@ typedef const char *zipcharpc;
#define ZIP_BADZIPFILE (-103)
#define ZIP_INTERNALERROR (-104)

#ifndef Z_DEFLATED
#define Z_DEFLATED (8)
#endif
#define Z_BZIP2ED (12)

#define APPEND_STATUS_CREATE (0)
Expand Down

0 comments on commit 25ff004

Please sign in to comment.