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

@@ -1897,7 +1897,11 @@ PyTypeObject vector_Type = {
&Vector_NumMethods, /* PyNumberMethods *tp_as_number; */
&Vector_SeqMethods, /* PySequenceMethods *tp_as_sequence; */
#if (PY_VERSION_HEX >= 0x03000000)
&Vector_AsMapping, /* PyMappingMethods *tp_as_mapping; */
#else
NULL,
#endif
/* More standard operations (here for binary compatibility) */