Commit 7932ecf3 authored by Robert Bradshaw's avatar Robert Bradshaw

Py 2.4 fixes.

parent de6217dd
...@@ -523,9 +523,9 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode): ...@@ -523,9 +523,9 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
#endif #endif
#if PY_VERSION_HEX < 0x02050000 #if PY_VERSION_HEX < 0x02050000
typedef int Py_ssize_t; typedef long Py_ssize_t;
#define PY_SSIZE_T_MAX INT_MAX #define PY_SSIZE_T_MAX LONG_MAX
#define PY_SSIZE_T_MIN INT_MIN #define PY_SSIZE_T_MIN LONG_MIN
#define PY_FORMAT_SIZE_T \"\" #define PY_FORMAT_SIZE_T \"\"
#define PyInt_FromSsize_t(z) PyInt_FromLong(z) #define PyInt_FromSsize_t(z) PyInt_FromLong(z)
#define PyInt_AsSsize_t(o) PyInt_AsLong(o) #define PyInt_AsSsize_t(o) PyInt_AsLong(o)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment