Changes between Initial Version and Version 1 of Ticket #5449


Ignore:
Timestamp:
Apr 30, 2014, 2:31:01 PM (10 years ago)
Author:
landry
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #5449 – Description

    initial v1  
    22
    33This breaks the build using --with-libjson-c= pointing to a 0.12 install... i see two potential fixes:
     4
    45- if not existing, #define json_tokener_errors to a call to json_tokener_error_desc() - i doubt that's feasible with a macro.
     6
    57- add some #ifdef spaghetti based on JSON_C_MINOR_VERSION, calling one or the other if > 12.
     8
    69- for a second i thought it would be possible to use the #define error_description(error) macro defined in json-c/bits.h, but it is still defined to (json_tokener_errors[error]) in 0.12 (which is wrong on so many levels....)
    710
     
    1013json_tokener_errors is used in the following files:
    1114
     15
     16{{{
    1217./gdal-1.11.0/frmts/mbtiles/mbtilesdataset.cpp
    1318./gdal-1.11.0/ogr/ogrsf_frmts/geojson/ogrgeojsonreader.cpp
     
    1621./gdal-1.11.0/ogr/ogrsf_frmts/couchdb/ogrcouchdbdatasource.cpp
    1722./gdal-1.11.0/ogr/ogrsf_frmts/gme/ogrgmejson.cpp
     23}}}