needed for building with py2

This commit is contained in:
2009-07-01 20:55:32 +00:00
parent 594c8802d7
commit 666ce6de80
2 changed files with 8 additions and 0 deletions

View File

@@ -1182,7 +1182,11 @@ PyTypeObject matrix_Type = {
(reprfunc) Matrix_repr, /*tp_repr*/
&Matrix_NumMethods, /*tp_as_number*/
&Matrix_SeqMethods, /*tp_as_sequence*/
#if (PY_VERSION_HEX >= 0x03000000)
&Matrix_AsMapping, /*tp_as_mapping*/
#else
0,
#endif
0, /*tp_hash*/
0, /*tp_call*/
0, /*tp_str*/