diff options
author | Gustavo J. A. M. Carneiro <gjc@src.gnome.org> | 2006-10-03 13:46:03 +0000 |
---|---|---|
committer | Gustavo J. A. M. Carneiro <gjc@src.gnome.org> | 2006-10-03 13:46:03 +0000 |
commit | ced58c3849be22f3577ccf7c7d3f6b66362f0626 (patch) | |
tree | 958558e1944b1c9a8743e40f9dd82d1d6336e49f /gobject/pygobject-private.h | |
parent | 63c68ca46895952ee589d5e476eefc173c4f0e9b (diff) | |
download | pygobject-ced58c3849be22f3577ccf7c7d3f6b66362f0626.tar.gz pygobject-ced58c3849be22f3577ccf7c7d3f6b66362f0626.tar.xz pygobject-ced58c3849be22f3577ccf7c7d3f6b66362f0626.zip |
Python 2.5, int vs ssize_t
Diffstat (limited to 'gobject/pygobject-private.h')
-rw-r--r-- | gobject/pygobject-private.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gobject/pygobject-private.h b/gobject/pygobject-private.h index ed1cd05..4ea38fa 100644 --- a/gobject/pygobject-private.h +++ b/gobject/pygobject-private.h @@ -20,6 +20,13 @@ } 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 +#endif + + /* from gobjectmodule.c */ extern struct _PyGObject_Functions pygobject_api_functions; #define pyg_block_threads() G_STMT_START { \ |