Changes between Initial Version and Version 1 of Ticket #5449
- Timestamp:
- Apr 30, 2014, 2:31:01 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #5449 – Description
initial v1 2 2 3 3 This breaks the build using --with-libjson-c= pointing to a 0.12 install... i see two potential fixes: 4 4 5 - if not existing, #define json_tokener_errors to a call to json_tokener_error_desc() - i doubt that's feasible with a macro. 6 5 7 - add some #ifdef spaghetti based on JSON_C_MINOR_VERSION, calling one or the other if > 12. 8 6 9 - 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....) 7 10 … … 10 13 json_tokener_errors is used in the following files: 11 14 15 16 {{{ 12 17 ./gdal-1.11.0/frmts/mbtiles/mbtilesdataset.cpp 13 18 ./gdal-1.11.0/ogr/ogrsf_frmts/geojson/ogrgeojsonreader.cpp … … 16 21 ./gdal-1.11.0/ogr/ogrsf_frmts/couchdb/ogrcouchdbdatasource.cpp 17 22 ./gdal-1.11.0/ogr/ogrsf_frmts/gme/ogrgmejson.cpp 23 }}}