Opened 21 years ago

Closed 21 years ago

#371 closed defect (fixed)

pyextend.i not being SWIGged properly

Reported by: sgillies@… Owned by: sdlime
Priority: lowest Milestone:
Component: MapScript Version: 4.0
Severity: critical Keywords:
Cc:

Description

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 ...

Change History (1)

comment:1 by sgillies@…, 21 years ago

Resolution: fixed
Status: newclosed
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.

Note: See TracTickets for help on using tickets.