> So we probably need to use an #ifdef. Indeed. I have updated the patch.
-- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
# HG changeset patch # Parent 18d034458b2bae92b0b8340c5ae00eea4a6ddf48 diff -r 18d034458b2b src/if_python.c --- a/src/if_python.c Mon Jun 24 19:24:53 2013 +0900 +++ b/src/if_python.c Mon Jun 24 19:31:54 2013 +0900 @@ -365,7 +365,11 @@ static PyObject* (*dll_PyObject_Call)(PyObject *, PyObject *, PyObject *); static PyObject* (*dll_PyObject_Repr)(PyObject *); static char*(*dll_PyString_AsString)(PyObject *); +#if defined(PY_VERSION_HEX) && PY_VERSION_HEX >= 0x02050000 +static int(*dll_PyString_AsStringAndSize)(PyObject *, char **, Py_ssize_t *); +#else static int(*dll_PyString_AsStringAndSize)(PyObject *, char **, int *); +#endif static PyObject*(*dll_PyString_FromString)(const char *); static PyObject*(*dll_PyString_FromFormat)(const char *, ...); static PyObject*(*dll_PyString_FromStringAndSize)(const char *, PyInt);