Trying to fix a problem where ai_python.cpp doesn't compile with python 2.5
This commit is contained in:
parent
43c8deff03
commit
e017d6a9ef
1 changed files with 5 additions and 1 deletions
|
@ -58,6 +58,10 @@
|
|||
|
||||
#define LOG_AI LOG_STREAM(info, ai)
|
||||
|
||||
#ifndef Py_ssize_t
|
||||
#define Py_ssize_t int
|
||||
#endif
|
||||
|
||||
static python_ai* running_instance;
|
||||
bool python_ai::init_ = false;
|
||||
|
||||
|
@ -1599,7 +1603,7 @@ PyObject* python_ai::wrapper_set_variable(PyObject* /*self*/, PyObject* args)
|
|||
if (so)
|
||||
{
|
||||
char *cs;
|
||||
int len;
|
||||
Py_ssize_t len;
|
||||
PyString_AsStringAndSize(so, &cs, &len);
|
||||
std::string s;
|
||||
char const *digits[] = {
|
||||
|
|
Loading…
Add table
Reference in a new issue