MapServer / MapServer-import

3 stars 2 forks source link

pyextend.i not being SWIGged properly #371

Closed tbonfort closed 12 years ago

tbonfort commented 12 years ago

Reporter: sgillies@frii.com Date: 2003/07/23 - 15:58

the mapObj method saveToString() which is defined in mapscript/python/pyextend.i
needs to be re-written so that it's #ifdef survive the run through SWIG.  As it
is, the Python mapscript_wrap.c which comes with MapServer has a broken
saveToString().

Another fix would be to run SWIG with all the GD macros as arguments like

swig -python -shadow -DUSE_GD_JPEG -DUSE_GD_PNG ...
tbonfort commented 12 years ago

Author: sgillies@frii.com Date: 2003/07/23 - 16:15

Fixed.

In pyextend.i, I added a '%' in front of the preprocessor
directives to protect them from being acted on by swig.

Passes my regression tests.