cJSON_HasObjectItem didn’t compile

This commit is contained in:
Kevin Branigan
2015-10-01 12:03:27 -04:00
parent 322e440e78
commit 8865d869db
2 changed files with 2 additions and 2 deletions

View File

@@ -662,7 +662,7 @@ static char *print_object(cJSON *item,int depth,int fmt,printbuffer *p)
int cJSON_GetArraySize(cJSON *array) {cJSON *c=array->child;int i=0;while(c)i++,c=c->next;return i;}
cJSON *cJSON_GetArrayItem(cJSON *array,int item) {cJSON *c=array->child; while (c && item>0) item--,c=c->next; return c;}
cJSON *cJSON_GetObjectItem(cJSON *object,const char *string) {cJSON *c=object->child; while (c && cJSON_strcasecmp(c->string,string)) c=c->next; return c;}
int *cJSON_HasObjectItem(cJSON *object,const char *string) {
int cJSON_HasObjectItem(cJSON *object,const char *string) {
cJSON *c=object->child;
while (c )
{