fix build on macos and clang when zip.h is present on system from zlib library

This commit is contained in:
Peter Petrik 2020-07-23 15:53:38 +02:00
parent 696aac95cb
commit ef88be6548
5 changed files with 4 additions and 4 deletions

View File

@ -807,7 +807,7 @@ PyImaging_XbmDecoderNew(PyObject* self, PyObject* args)
#ifdef HAVE_LIBZ
#include "Zip.h"
#include "ZipState.h"
PyObject*
PyImaging_ZipDecoderNew(PyObject* self, PyObject* args)

View File

@ -578,7 +578,7 @@ PyImaging_XbmEncoderNew(PyObject* self, PyObject* args)
#ifdef HAVE_LIBZ
#include "Zip.h"
#include "ZipState.h"
PyObject*
PyImaging_ZipEncoderNew(PyObject* self, PyObject* args)

View File

@ -20,7 +20,7 @@
#ifdef HAVE_LIBZ
#include "Zip.h"
#include "ZipState.h"
static const int OFFSET[] = { 7, 3, 3, 1, 1, 0, 0 };
static const int STARTING_COL[] = { 0, 4, 0, 2, 0, 1, 0 };

View File

@ -19,7 +19,7 @@
#ifdef HAVE_LIBZ
#include "Zip.h"
#include "ZipState.h"
int
ImagingZipEncode(Imaging im, ImagingCodecState state, UINT8* buf, int bytes)