Ticket #3717 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

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

Changed 2 years ago by assefa

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

Changed 2 years ago by assefa

  • status changed from new to closed
  • resolution set to fixed

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.