fix for Windows
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6860 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
7df3a0ab13
commit
61b1dc73f5
1 changed files with 21 additions and 4 deletions
|
|
@ -169,7 +169,11 @@ PySwigObject_GetType() {
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
static PyTypeObject PySwigObject_Type = {
|
static int type_init = 0;
|
||||||
|
static PyTypeObject PySwigObject_Type;
|
||||||
|
|
||||||
|
if (!type_init) {
|
||||||
|
PyTypeObject tmp = {
|
||||||
PyObject_HEAD_INIT(&PyType_Type)
|
PyObject_HEAD_INIT(&PyType_Type)
|
||||||
0, /*ob_size*/
|
0, /*ob_size*/
|
||||||
"PySwigObject", /*tp_name*/
|
"PySwigObject", /*tp_name*/
|
||||||
|
|
@ -208,7 +212,11 @@ PySwigObject_GetType() {
|
||||||
#ifdef COUNT_ALLOCS
|
#ifdef COUNT_ALLOCS
|
||||||
0,0,0,0 /* tp_alloc -> tp_next */
|
0,0,0,0 /* tp_alloc -> tp_next */
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
PySwigObject_Type = tmp;
|
||||||
|
type_init = 1;
|
||||||
|
}
|
||||||
|
|
||||||
return &PySwigObject_Type;
|
return &PySwigObject_Type;
|
||||||
}
|
}
|
||||||
|
|
@ -313,8 +321,11 @@ SWIGRUNTIME PyTypeObject*
|
||||||
PySwigPacked_GetType() {
|
PySwigPacked_GetType() {
|
||||||
static char PySwigPacked_Type__doc__[] =
|
static char PySwigPacked_Type__doc__[] =
|
||||||
"Swig object carries a C/C++ instance pointer";
|
"Swig object carries a C/C++ instance pointer";
|
||||||
|
static int type_init = 0;
|
||||||
|
|
||||||
static PyTypeObject PySwigPacked_Type = {
|
static PyTypeObject PySwigPacked_Type;
|
||||||
|
if (!type_init) {
|
||||||
|
PyTypeObject tmp = {
|
||||||
PyObject_HEAD_INIT(&PyType_Type)
|
PyObject_HEAD_INIT(&PyType_Type)
|
||||||
0, /*ob_size*/
|
0, /*ob_size*/
|
||||||
"PySwigPacked", /*tp_name*/
|
"PySwigPacked", /*tp_name*/
|
||||||
|
|
@ -353,7 +364,13 @@ PySwigPacked_GetType() {
|
||||||
#ifdef COUNT_ALLOCS
|
#ifdef COUNT_ALLOCS
|
||||||
0,0,0,0 /* tp_alloc -> tp_next */
|
0,0,0,0 /* tp_alloc -> tp_next */
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
PySwigPacked_Type = tmp;
|
||||||
|
type_init = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return &PySwigPacked_Type;
|
return &PySwigPacked_Type;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue