mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
support python 2.4
This commit is contained in:
parent
923c9929a1
commit
83155fc832
@ -444,7 +444,7 @@ void Dtool_PyModuleInitHelper( LibrayDef *defs[], const char * modulename)
|
|||||||
newdef[offset].ml_meth = NULL;
|
newdef[offset].ml_meth = NULL;
|
||||||
newdef[offset].ml_flags = 0;
|
newdef[offset].ml_flags = 0;
|
||||||
|
|
||||||
PyObject * module = Py_InitModule(modulename,newdef);
|
PyObject * module = Py_InitModule((char *)modulename,newdef);
|
||||||
|
|
||||||
if(module == NULL)
|
if(module == NULL)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user