mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-04 09:57:43 +03:00 
			
		
		
		
	fix build on macos and clang when zip.h is present on system from zlib library
This commit is contained in:
		
							parent
							
								
									696aac95cb
								
							
						
					
					
						commit
						ef88be6548
					
				| 
						 | 
				
			
			@ -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)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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 };
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -19,7 +19,7 @@
 | 
			
		|||
 | 
			
		||||
#ifdef  HAVE_LIBZ
 | 
			
		||||
 | 
			
		||||
#include "Zip.h"
 | 
			
		||||
#include "ZipState.h"
 | 
			
		||||
 | 
			
		||||
int
 | 
			
		||||
ImagingZipEncode(Imaging im, ImagingCodecState state, UINT8* buf, int bytes)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user