提交 45a0790a authored 作者: James Bergstra's avatar James Bergstra

adding Py_ssize_t typedef for older pythons to lazylinker_c

上级 2f197df7
#include <Python.h> #include <Python.h>
#include "structmember.h" #include "structmember.h"
#include <sys/time.h> #include <sys/time.h>
// Old Python compatibility from here:
// http://www.python.org/dev/peps/pep-0353/
#if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN)
typedef int Py_ssize_t;
#define PY_SSIZE_T_MAX INT_MAX
#define PY_SSIZE_T_MIN INT_MIN
#endif
/** /**
TODO: TODO:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论