switch (level) {
case 1:
+#ifdef Py_TYPE
if (strcmp("drsuapi.DsGetNCChangesCtr1", Py_TYPE(py_ctr)->tp_name) != 0) {
PyErr_SetString(PyExc_TypeError, "Expected DsGetNCChangesCtr1 type for ctr");
return NULL;
}
+#endif
s->chunk.ctr1 = py_talloc_get_ptr(py_ctr);
s->partition.nc = *s->chunk.ctr1->naming_context;
s->partition.more_data = s->chunk.ctr1->more_data;
s->partition.highwatermark = s->chunk.ctr1->new_highwatermark;
break;
case 6:
+#ifdef Py_TYPE
if (strcmp("drsuapi.DsGetNCChangesCtr6", Py_TYPE(py_ctr)->tp_name) != 0) {
PyErr_SetString(PyExc_TypeError, "Expected DsGetNCChangesCtr6 type for ctr");
return NULL;
}
+#endif
s->chunk.ctr6 = py_talloc_get_ptr(py_ctr);
s->partition.nc = *s->chunk.ctr6->naming_context;
s->partition.more_data = s->chunk.ctr6->more_data;