提交 f859450d authored 作者: Olivier Delalleau's avatar Olivier Delalleau

Python 2.4 compatibility fix in LazyLinker C code

上级 45a0790a
...@@ -8,6 +8,9 @@ ...@@ -8,6 +8,9 @@
typedef int Py_ssize_t; typedef int Py_ssize_t;
#define PY_SSIZE_T_MAX INT_MAX #define PY_SSIZE_T_MAX INT_MAX
#define PY_SSIZE_T_MIN INT_MIN #define PY_SSIZE_T_MIN INT_MIN
// This one was taken from:
// http://svn.python.org/projects/python/trunk/Modules/_ctypes/ctypes.h
#define PyNumber_AsSsize_t(ob, exc) PyInt_AsLong(ob)
#endif #endif
/** /**
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论