Skip to content

Commit

Permalink
COMP: Fix for build with python 2.5. Patch from Erik Anderson.
Browse files Browse the repository at this point in the history
  • Loading branch information
bradking committed Jul 13, 2007
1 parent 8eb1734 commit 4befcbf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion SWIG/Lib/python/pystrings.swg
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ SWIGSTATIC(int)
SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* size)
{
static swig_type_info* pchar_info = 0;
int psize = 0;
#if defined(PY_SSIZE_T_MAX)
Py_ssize_t psize = 0;
#else
int psize = 0;
#endif
if (!pchar_info) pchar_info = SWIG_TypeQuery("char *");

if (SWIG_ConvertPtr(obj, swig_reinterpret_cast(void **,cptr), pchar_info, 0) == -1) {
Expand Down

0 comments on commit 4befcbf

Please sign in to comment.