Skip to content

Commit

Permalink
Merge pull request #10 from SciKit-Surgery/master
Browse files Browse the repository at this point in the history
Master
  • Loading branch information
thompson318 committed Jan 23, 2024
2 parents ec7431a + 92444d6 commit c002943
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions ndicapimodule.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1748,8 +1748,13 @@ ndicapiExport MOD_INIT(ndicapy)
PyNdicapiType.ob_type = &PyType_Type;
PyNDIBitfield_Type.ob_type = &PyType_Type;
#else
Py_TYPE(&PyNdicapiType) = &PyType_Type;
Py_TYPE(&PyNDIBitfield_Type) = &PyType_Type;
#if PY_MINOR_VERSION < 11
Py_TYPE(&PyNdicapiType) = &PyType_Type;
Py_TYPE(&PyNDIBitfield_Type) = &PyType_Type;
#else
Py_SET_TYPE(&PyNdicapiType, &PyType_Type);
Py_SET_TYPE(&PyNDIBitfield_Type, &PyType_Type);
#endif
#endif

MOD_DEF(module, "ndicapy", NULL, NdicapiMethods);
Expand All @@ -1764,7 +1769,6 @@ ndicapiExport MOD_INIT(ndicapy)

Py_NDIConstantMacro(NDI_OKAY);

Py_NDIErrcodeMacro(NDI_OKAY);
Py_NDIErrcodeMacro(NDI_INVALID);
Py_NDIErrcodeMacro(NDI_TOO_LONG);
Py_NDIErrcodeMacro(NDI_TOO_SHORT);
Expand Down

0 comments on commit c002943

Please sign in to comment.