mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-06-11 08:33:13 +03:00
Fix for Python 3.13: explicitly include unistd.h
This commit is contained in:
parent
dcc66597f0
commit
95eef25aca
|
@ -12,6 +12,10 @@
|
||||||
|
|
||||||
#include "Imaging.h"
|
#include "Imaging.h"
|
||||||
|
|
||||||
|
#ifndef _UNISTD_H
|
||||||
|
#include <unistd.h> /* lseek */
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_LIBTIFF
|
#ifdef HAVE_LIBTIFF
|
||||||
|
|
||||||
#ifndef uint
|
#ifndef uint
|
||||||
|
|
|
@ -13,12 +13,6 @@
|
||||||
#include <tiff.h>
|
#include <tiff.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* UNDONE -- what are we using from this? */
|
|
||||||
/*#ifndef _UNISTD_H
|
|
||||||
# include <unistd.h>
|
|
||||||
# endif
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef min
|
#ifndef min
|
||||||
#define min(x, y) ((x > y) ? y : x)
|
#define min(x, y) ((x > y) ? y : x)
|
||||||
#define max(x, y) ((x < y) ? y : x)
|
#define max(x, y) ((x < y) ? y : x)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user