From 3c0cb2942ee076eb12ba13ae8b773c2c7222118e 2009-04-15 06:38:52 From: florianlink Date: 2009-04-15 06:38:52 Subject: [PATCH] named the struct and implemented classInfo() as a member of the struct and not the typedef (this seems to be a GCC issue, it worked well on MSVC8) git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@57 ea8d5007-eb21-0410-b261-ccb3ea6e24a9 --- diff --git a/src/PythonQtInstanceWrapper.cpp b/src/PythonQtInstanceWrapper.cpp index 1af948c..f6c9dc9 100644 --- a/src/PythonQtInstanceWrapper.cpp +++ b/src/PythonQtInstanceWrapper.cpp @@ -47,7 +47,7 @@ #include "PythonQtConversion.h" #include "PythonQtClassWrapper.h" -PythonQtClassInfo* PythonQtInstanceWrapper::classInfo() +PythonQtClassInfo* PythonQtInstanceWrapperStruct::classInfo() { // take the class info from our type object return ((PythonQtClassWrapper*)ob_type)->_classInfo; diff --git a/src/PythonQtInstanceWrapper.h b/src/PythonQtInstanceWrapper.h index f41fa12..e04644b 100644 --- a/src/PythonQtInstanceWrapper.h +++ b/src/PythonQtInstanceWrapper.h @@ -59,7 +59,7 @@ extern PYTHONQT_EXPORT PyTypeObject PythonQtInstanceWrapper_Type; //--------------------------------------------------------------- //! a Python wrapper object for Qt objects and C++ objects (that are themselves wrapped by wrapper QObjects) -typedef struct { +typedef struct PythonQtInstanceWrapperStruct { PyObject_HEAD //! the class information, this is set even if the _obj or _wrappedPtr is NULL to support typed NULL pointers