Fixed PyVarObject_HEAD_INIT calls for VC++.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12634 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
fd666c1440
commit
257b75c23c
3 changed files with 26 additions and 11 deletions
|
|
@ -3337,7 +3337,7 @@ public:
|
|||
// PyTypeObject ht_type
|
||||
Printf(f, " {\n");
|
||||
Printv(f, "#if PY_VERSION_HEX >= 0x03000000\n", NIL);
|
||||
Printv(f, " PyVarObject_HEAD_INIT(&PyType_Type, 0)\n", NIL);
|
||||
Printv(f, " PyVarObject_HEAD_INIT(NULL, 0)\n", NIL);
|
||||
Printv(f, "#else\n", NIL);
|
||||
Printf(f, " PyObject_HEAD_INIT(NULL)\n");
|
||||
printSlot(f, getSlot(), "ob_size");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue