Changeset 13701
- Timestamp:
- 02/05/08 18:24:28 (5 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/gdal/ogr/ogrsf_frmts/geojson/jsonc/json_tokener.c
r12647 r13701 24 24 #include "json_tokener.h" 25 25 26 #include <cpl_port.h> /* MIN and MAX macros */ 26 27 27 28 #if !HAVE_STRNCASECMP && defined(_MSC_VER) … … 107 108 if(str) { 108 109 size_t len = strlen(str); 109 size_t nn = min(len,n);110 size_t nn = MIN(len,n); 110 111 char* s = (char*)malloc(sizeof(char) * (nn + 1)); 111 112 … … 231 232 printbuf_memappend(tok->pb, &c, 1); 232 233 if(strncasecmp(json_null_str, tok->pb->buf, 233 min(tok->st_pos+1, strlen(json_null_str))) == 0) {234 MIN(tok->st_pos+1, strlen(json_null_str))) == 0) { 234 235 if(tok->st_pos == strlen(json_null_str)) { 235 236 current = NULL; … … 352 353 printbuf_memappend(tok->pb, &c, 1); 353 354 if(strncasecmp(json_true_str, tok->pb->buf, 354 min(tok->st_pos+1, strlen(json_true_str))) == 0) {355 MIN(tok->st_pos+1, strlen(json_true_str))) == 0) { 355 356 if(tok->st_pos == strlen(json_true_str)) { 356 357 current = json_object_new_boolean(1); … … 360 361 } 361 362 } else if(strncasecmp(json_false_str, tok->pb->buf, 362 min(tok->st_pos+1, strlen(json_false_str))) == 0) {363 MIN(tok->st_pos+1, strlen(json_false_str))) == 0) { 363 364 if(tok->st_pos == strlen(json_false_str)) { 364 365 current = json_object_new_boolean(0);
