mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 09:26:16 +03:00
py3k: Remove ancient Python hacks
This commit is contained in:
parent
be560f00f5
commit
a8599e8bb2
|
@ -28,11 +28,6 @@ http://www.cazabon.com\n\
|
|||
#include "Imaging.h"
|
||||
#include "py3.h"
|
||||
|
||||
#if PY_VERSION_HEX < 0x01060000
|
||||
#define PyObject_New PyObject_NEW
|
||||
#define PyObject_Del PyMem_DEL
|
||||
#endif
|
||||
|
||||
#if LCMS_VERSION < 117
|
||||
#define LCMSBOOL BOOL
|
||||
#endif
|
||||
|
|
|
@ -35,15 +35,6 @@
|
|||
#include <freetype/freetype.h>
|
||||
#endif
|
||||
|
||||
#if PY_VERSION_HEX < 0x01060000
|
||||
#define PyObject_New PyObject_NEW
|
||||
#define PyObject_Del PyMem_DEL
|
||||
#endif
|
||||
|
||||
#if !defined(Py_RETURN_NONE)
|
||||
#define Py_RETURN_NONE return Py_INCREF(Py_None), Py_None
|
||||
#endif
|
||||
|
||||
#define KEEP_PY_UNICODE
|
||||
#include "py3.h"
|
||||
|
||||
|
|
5
decode.c
5
decode.c
|
@ -31,11 +31,6 @@
|
|||
|
||||
#include "Python.h"
|
||||
|
||||
#if PY_VERSION_HEX < 0x01060000
|
||||
#define PyObject_New PyObject_NEW
|
||||
#define PyObject_Del PyMem_DEL
|
||||
#endif
|
||||
|
||||
#include "Imaging.h"
|
||||
#include "py3.h"
|
||||
|
||||
|
|
|
@ -25,11 +25,6 @@
|
|||
|
||||
#include "Python.h"
|
||||
|
||||
#if PY_VERSION_HEX < 0x01060000
|
||||
#define PyObject_New PyObject_NEW
|
||||
#define PyObject_Del PyMem_DEL
|
||||
#endif
|
||||
|
||||
#include "Imaging.h"
|
||||
#include "py3.h"
|
||||
|
||||
|
|
5
encode.c
5
encode.c
|
@ -24,11 +24,6 @@
|
|||
|
||||
#include "Python.h"
|
||||
|
||||
#if PY_VERSION_HEX < 0x01060000
|
||||
#define PyObject_New PyObject_NEW
|
||||
#define PyObject_Del PyMem_DEL
|
||||
#endif
|
||||
|
||||
#include "Imaging.h"
|
||||
#include "py3.h"
|
||||
#include "Gif.h"
|
||||
|
|
5
map.c
5
map.c
|
@ -20,11 +20,6 @@
|
|||
|
||||
#include "Python.h"
|
||||
|
||||
#if PY_VERSION_HEX < 0x01060000
|
||||
#define PyObject_New PyObject_NEW
|
||||
#define PyObject_Del PyMem_DEL
|
||||
#endif
|
||||
|
||||
#include "Imaging.h"
|
||||
|
||||
#ifdef WIN32
|
||||
|
|
|
@ -19,11 +19,6 @@
|
|||
|
||||
#include "Python.h"
|
||||
|
||||
#if PY_VERSION_HEX < 0x01060000
|
||||
#define PyObject_New PyObject_NEW
|
||||
#define PyObject_Del PyMem_DEL
|
||||
#endif
|
||||
|
||||
#include "Imaging.h"
|
||||
|
||||
|
||||
|
|
14
path.c
14
path.c
|
@ -30,20 +30,6 @@
|
|||
|
||||
#include <math.h>
|
||||
|
||||
#if PY_VERSION_HEX < 0x01060000
|
||||
#define PyObject_New PyObject_NEW
|
||||
#define PyObject_Del PyMem_DEL
|
||||
#endif
|
||||
|
||||
#if PY_VERSION_HEX < 0x02050000
|
||||
#define Py_ssize_t int
|
||||
#define lenfunc inquiry
|
||||
#define ssizeargfunc intargfunc
|
||||
#define ssizessizeargfunc intintargfunc
|
||||
#define ssizeobjargproc intobjargproc
|
||||
#define ssizessizeobjargproc intintobjargproc
|
||||
#endif
|
||||
|
||||
#include "py3.h"
|
||||
|
||||
/* compatibility wrappers (defined in _imaging.c) */
|
||||
|
|
Loading…
Reference in New Issue
Block a user