mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
Fix Python 3 compile issue
This commit is contained in:
parent
e38b97b26f
commit
ae4bddd7f7
@ -1942,7 +1942,7 @@ write_module_class(ostream &out, Object *obj) {
|
||||
out << " Dtool_" << ClassName << ".As_PyTypeObject().tp_flags |= Py_TPFLAGS_HAVE_ITER;\n";
|
||||
}
|
||||
if (has_local_getbuffer) {
|
||||
out << "#if PY_VERSION_HEX >= 0x02060000\n";
|
||||
out << "#if PY_VERSION_HEX >= 0x02060000 && PY_VERSION_HEX < 0x03000000\n";
|
||||
out << " Dtool_" << ClassName << ".As_PyTypeObject().tp_flags |= Py_TPFLAGS_HAVE_NEWBUFFER;\n";
|
||||
out << "#endif";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user