py3k: Remove ancient Python hacks

This commit is contained in:
Brian Crowell 2012-10-21 11:36:47 -05:00 committed by Brian Crowell
parent be560f00f5
commit a8599e8bb2
8 changed files with 0 additions and 53 deletions

View File

@ -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

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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
View File

@ -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

View File

@ -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
View File

@ -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) */