mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-04 09:57:43 +03:00 
			
		
		
		
	import global libs correctly
This commit is contained in:
		
							parent
							
								
									bd03721816
								
							
						
					
					
						commit
						517c3e1c7f
					
				| 
						 | 
				
			
			@ -72,11 +72,11 @@
 | 
			
		|||
 */
 | 
			
		||||
 | 
			
		||||
#ifdef HAVE_LIBJPEG
 | 
			
		||||
#include "jconfig.h"
 | 
			
		||||
#include <jconfig.h>
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#ifdef HAVE_LIBZ
 | 
			
		||||
#include "zlib.h"
 | 
			
		||||
#include <zlib.h>
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#ifdef HAVE_LIBTIFF
 | 
			
		||||
| 
						 | 
				
			
			@ -85,8 +85,6 @@
 | 
			
		|||
 | 
			
		||||
#include "libImaging/Imaging.h"
 | 
			
		||||
 | 
			
		||||
#include <stddef.h>
 | 
			
		||||
 | 
			
		||||
#undef VERBOSE
 | 
			
		||||
 | 
			
		||||
#define B16(p, i) ((((int)p[(i)]) << 8) + p[(i) + 1])
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -28,20 +28,18 @@
 | 
			
		|||
#ifdef _WIN32
 | 
			
		||||
#define WIN32_LEAN_AND_MEAN
 | 
			
		||||
#include <Windows.h>
 | 
			
		||||
 | 
			
		||||
#ifdef _WIN64
 | 
			
		||||
#define F_HANDLE "K"
 | 
			
		||||
#else
 | 
			
		||||
#define F_HANDLE "k"
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#endif /* _WIN32 */
 | 
			
		||||
 | 
			
		||||
#include <stdint.h>
 | 
			
		||||
 | 
			
		||||
/* We have to define types instead of using typedef because the JPEG lib also
 | 
			
		||||
   defines their own types with the same names, so we need to be able to undef
 | 
			
		||||
   ours before including the JPEG code. */
 | 
			
		||||
#include <stdint.h>
 | 
			
		||||
 | 
			
		||||
#define INT8 int8_t
 | 
			
		||||
#define UINT8 uint8_t
 | 
			
		||||
#define INT16 int16_t
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -17,7 +17,6 @@
 | 
			
		|||
 | 
			
		||||
#ifdef HAVE_OPENJPEG
 | 
			
		||||
 | 
			
		||||
#include <stdlib.h>
 | 
			
		||||
#include "Jpeg2K.h"
 | 
			
		||||
 | 
			
		||||
typedef struct {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -8,15 +8,15 @@
 | 
			
		|||
 *
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
#ifdef HAVE_LIBIMAGEQUANT
 | 
			
		||||
 | 
			
		||||
#include <stdio.h>
 | 
			
		||||
#include <stdlib.h>
 | 
			
		||||
#include <string.h>
 | 
			
		||||
#include <libimagequant.h>
 | 
			
		||||
 | 
			
		||||
#include "QuantPngQuant.h"
 | 
			
		||||
 | 
			
		||||
#ifdef HAVE_LIBIMAGEQUANT
 | 
			
		||||
#include "libimagequant.h"
 | 
			
		||||
 | 
			
		||||
int
 | 
			
		||||
quantize_pngquant(
 | 
			
		||||
    Pixel *pixelData,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -7,7 +7,7 @@
 | 
			
		|||
 * Copyright (c) Fredrik Lundh 1996.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
#include "zlib.h"
 | 
			
		||||
#include <zlib.h>
 | 
			
		||||
 | 
			
		||||
/* modes */
 | 
			
		||||
#define ZIP_PNG 0            /* continuous, filtered image data */
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user