Browse Source

Fix Python 3.2 compilation error

rdb 8 years ago
parent
commit
3e6dc3b046
1 changed files with 2 additions and 0 deletions
  1. 2 0
      dtool/src/interrogatedb/py_panda.cxx

+ 2 - 0
dtool/src/interrogatedb/py_panda.cxx

@@ -1148,7 +1148,9 @@ Dtool_NewStaticProperty(PyTypeObject *type, const PyGetSetDef *getset) {
 #if PY_MAJOR_VERSION >= 3
 #if PY_MAJOR_VERSION >= 3
     descr->d_common.d_type = type;
     descr->d_common.d_type = type;
     descr->d_common.d_name = PyUnicode_InternFromString(getset->name);
     descr->d_common.d_name = PyUnicode_InternFromString(getset->name);
+#if PY_VERSION_HEX >= 0x03030000
     descr->d_common.d_qualname = nullptr;
     descr->d_common.d_qualname = nullptr;
+#endif
 #else
 #else
     descr->d_type = type;
     descr->d_type = type;
     descr->d_name = PyString_InternFromString(getset->name);
     descr->d_name = PyString_InternFromString(getset->name);