summaryrefslogtreecommitdiffstats
path: root/libshiboken
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2011-10-11 16:34:30 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2011-12-09 20:28:06 -0300
commit34fd7b9d5ddb423746c00f2fb4f29a6c0b58fb5c (patch)
treea3c108b733256b2e2623dc00c05498979acf958b /libshiboken
parentd9869583350aa86bd37fa46c13359f81a32534c8 (diff)
downloadshiboken-34fd7b9d5ddb423746c00f2fb4f29a6c0b58fb5c.tar.gz
shiboken-34fd7b9d5ddb423746c00f2fb4f29a6c0b58fb5c.tar.xz
shiboken-34fd7b9d5ddb423746c00f2fb4f29a6c0b58fb5c.zip
Fixed Python 2.5 compatibility header for PyLong_FromSize_t and PyLong_AsSsize_t functions.
Diffstat (limited to 'libshiboken')
-rw-r--r--libshiboken/python25compat.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libshiboken/python25compat.h b/libshiboken/python25compat.h
index 494f5841..837d2eb9 100644
--- a/libshiboken/python25compat.h
+++ b/libshiboken/python25compat.h
@@ -79,6 +79,9 @@ inline PyObject* PyUnicode_FromString(const char* s)
return PyUnicode_DecodeUTF8(s, len, 0);
}
+#define PyLong_FromSize_t _PyLong_FromSize_t
+#define PyLong_AsSsize_t _PyLong_AsSsize_t
+
#endif
#endif