Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Changes to make mingw happy with the swig wrapper
git-svn-id: http://svn.osgeo.org/qgis/trunk@6242 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
gsherman committed Dec 11, 2006
1 parent 40435bd commit 6e881ca
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tools/mapserver_export/msexport_wrap.cxx
Expand Up @@ -1174,7 +1174,11 @@ SWIG_Python_ConvertPtr(PyObject *obj, void **ptr, swig_type_info *ty, int flags)
obj = pyobj;
if (PyCFunction_Check(obj)) {
/* here we get the method pointer for callbacks */
#ifdef WIN32
char *doc = (char *)(((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
#else
char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
#endif
c = doc ? strstr(doc, "swig_ptr: ") : 0;
if (c) {
c = SWIG_UnpackVoidPtr(c + 10, &vptr, ty->name);
Expand Down Expand Up @@ -2061,7 +2065,11 @@ extern "C" {
swig_type_info **types_initial) {
size_t i;
for (i = 0; methods[i].ml_name; ++i) {
#ifdef WIN32
char *c = (char *)methods[i].ml_doc;
#else
char *c = methods[i].ml_doc;
#endif
if (c && (c = strstr(c, "swig_ptr: "))) {
int j;
swig_const_info *ci = 0;
Expand Down

0 comments on commit 6e881ca

Please sign in to comment.