mirror of https://github.com/n1nj4sec/pupy.git
16 lines
387 B
C
16 lines
387 B
C
#include <patchlevel.h>
|
|
#if (PY_VERSION_HEX < 0x02050000)
|
|
# define PYTHON_API_VERSION 1012
|
|
typedef int Py_ssize_t;
|
|
#else
|
|
# define PYTHON_API_VERSION 1013
|
|
/* The check for _WIN64 must come first, because on win64 both _WIN64 and
|
|
* _WIN32 are defined!
|
|
*/
|
|
# if defined (_WIN64)
|
|
typedef __int64 Py_ssize_t;
|
|
# elif defined (_WIN32)
|
|
typedef int Py_ssize_t;
|
|
# endif
|
|
#endif
|