diff options
| author | Johan Dahlin <johan@gnome.org> | 2008-07-28 09:14:58 +0000 |
|---|---|---|
| committer | Johan Dahlin <johan@src.gnome.org> | 2008-07-28 09:14:58 +0000 |
| commit | a0a7a3a90b7bb10d9e25f2d743752a0f52956785 (patch) | |
| tree | 45e688865dd5fcd275130c49bee254a18e3e8d1b /gobject | |
| parent | 2ae24a748569d3f2451a4362e91b0965d1cee97c (diff) | |
| download | pygobject-a0a7a3a90b7bb10d9e25f2d743752a0f52956785.tar.gz pygobject-a0a7a3a90b7bb10d9e25f2d743752a0f52956785.tar.xz pygobject-a0a7a3a90b7bb10d9e25f2d743752a0f52956785.zip | |
Move all compatibility into the same place, fixes build on python 2.4.
2008-07-28 Johan Dahlin <johan@gnome.org>
* glib/pyglib-python-compat.h:
* gobject/pygobject-private.h:
Move all compatibility into the same place, fixes build
on python 2.4.
svn path=/trunk/; revision=890
Diffstat (limited to 'gobject')
| -rw-r--r-- | gobject/pygobject-private.h | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/gobject/pygobject-private.h b/gobject/pygobject-private.h index 3d4f877..2a09eed 100644 --- a/gobject/pygobject-private.h +++ b/gobject/pygobject-private.h @@ -10,25 +10,6 @@ #include "pyglib-python-compat.h" -/* Python 2.3 does not define Py_CLEAR */ -#ifndef Py_CLEAR -#define Py_CLEAR(op) \ - do { \ - if (op) { \ - PyObject *tmp = (PyObject *)(op); \ - (op) = NULL; \ - Py_DECREF(tmp); \ - } \ - } while (0) -#endif - -#if PY_VERSION_HEX < 0x02050000 -typedef int Py_ssize_t; -#define PY_SSIZE_T_MAX INT_MAX -#define PY_SSIZE_T_MIN INT_MIN -typedef inquiry lenfunc; -#endif - #define PYGOBJECT_REGISTER_GTYPE(d, type, name, gtype) \ { \ PyObject *o; \ |
