Skip to content

Commit

Permalink
Since we already use a local json_bool type, replace any stdbool.h us…
Browse files Browse the repository at this point in the history
…age with

 that, since not all environments actually have a stdbool.h to use.
  • Loading branch information
hawicz committed Apr 25, 2012
1 parent 0f8c534 commit 4e000a6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion json_object.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
#include "json_object.h"
#include "json_object_private.h"
#include "json_util.h"
#include "json_tokener.h"

#if !HAVE_STRNDUP
char* strndup(const char* str, size_t n);
Expand Down
3 changes: 1 addition & 2 deletions json_object_iterator.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
*/

#include <stddef.h>
#include <stdbool.h>

#include "json.h"
#include "json_object_private.h"
Expand Down Expand Up @@ -139,7 +138,7 @@ json_object_iter_peek_value(const struct json_object_iterator* iter)
/**
* ****************************************************************************
*/
bool
json_bool
json_object_iter_equal(const struct json_object_iterator* iter1,
const struct json_object_iterator* iter2)
{
Expand Down
5 changes: 2 additions & 3 deletions json_object_iterator.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
#define JSON_OBJECT_ITERATOR_H

#include <stddef.h>
#include <stdbool.h>

#ifdef __cplusplus
extern "C" {
Expand Down Expand Up @@ -223,11 +222,11 @@ json_object_iter_peek_value(const struct json_object_iterator* iter);
* different JSON Object instances are passed, bad things
* will happen!
*
* @return bool non-zero if iterators are equal (i.e., both
* @return json_bool non-zero if iterators are equal (i.e., both
* reference the same name/value pair or are both at
* "end"); zero if they are not equal.
*/
bool
json_bool
json_object_iter_equal(const struct json_object_iterator* iter1,
const struct json_object_iterator* iter2);

Expand Down

0 comments on commit 4e000a6

Please sign in to comment.