Skip to content
Permalink
Browse files

Changes to make mingw happy with the swig wrapper

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6242 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
gsherman
gsherman committed Dec 11, 2006
1 parent c9161a4 commit 529c2e9d5fb115f363098665890d8a7c172d4997
Showing with 8 additions and 0 deletions.
  1. +8 −0 tools/mapserver_export/msexport_wrap.cxx
@@ -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);
@@ -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;

0 comments on commit 529c2e9

Please sign in to comment.
You can’t perform that action at this time.