Opened 13 years ago

Closed 13 years ago

#3717 closed defect (fixed)

mapkmlrenderer.cpp:use of VSILFILE

Reported by: assefa Owned by: assefa
Priority: normal Milestone: 6.0 release
Component: Output-KML Version: unspecified
Severity: normal Keywords:
Cc: aboudreault

Description

use of VSIFILE would not works for gdal 1.7.x versions. It is defined in gdal 1.8.0 and up.

It should be equivalent to using FILE (looking into cpl_conv.h): #ifdef DEBUG #define VSIL_STRICT_ENFORCE #endif

#ifdef VSIL_STRICT_ENFORCE typedef struct _VSILFILE VSILFILE; #else typedef FILE VSILFILE; #endif

Change History (2)

comment:1 by assefa, 13 years ago

I have added the change in r11114. It seems also the way that this is used in mapogroutput.c Allan, let me know. Thanks

comment:2 by assefa, 13 years ago

Resolution: fixed
Status: newclosed

Previous change was not needed. The code should build with 1.8 just ok. the #if defined(CPL_ZIP_API_OFFERED) guarantees that we are at gdal 1.8+.

Note: See TracTickets for help on using tickets.