support python 2.4

This commit is contained in:
David Rose 2009-02-19 00:25:54 +00:00
parent 923c9929a1
commit 83155fc832

View File

@ -444,7 +444,7 @@ void Dtool_PyModuleInitHelper( LibrayDef *defs[], const char * modulename)
newdef[offset].ml_meth = NULL;
newdef[offset].ml_flags = 0;
PyObject * module = Py_InitModule(modulename,newdef);
PyObject * module = Py_InitModule((char *)modulename,newdef);
if(module == NULL)
{