summaryrefslogtreecommitdiff
path: root/json_object_private.h
diff options
context:
space:
mode:
authorMichael Clark <michael@metaparadigm.com>2009-02-25 02:31:32 +0000
committerMichael Clark <michael@metaparadigm.com>2009-02-25 02:31:32 +0000
commitaaec1ef3c542accb118af48c09edc7e07675671a (patch)
treeaa8044c50301f18a7046f4efadc1b9134eeb61d1 /json_object_private.h
parent266a3fd30141b31632eead6739ace524bc172de5 (diff)
* Don't use this as a variable, so we can compile with a C++ compiler
* Add casts from void* to type of assignment when using malloc * Add #ifdef __cplusplus guards to all of the headers * Add typedefs for json_object, json_tokener, array_list, printbuf, lh_table Michael Clark, <michael@metaparadigm.com> git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@33 327403b1-1117-474d-bef2-5cb71233fd97
Diffstat (limited to 'json_object_private.h')
-rw-r--r--json_object_private.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/json_object_private.h b/json_object_private.h
index 35a44f3..9fb4011 100644
--- a/json_object_private.h
+++ b/json_object_private.h
@@ -12,6 +12,10 @@
#ifndef _json_object_private_h_
#define _json_object_private_h_
+#ifdef __cplusplus
+extern "C" {
+#endif
+
typedef void (json_object_delete_fn)(struct json_object *o);
typedef int (json_object_to_json_string_fn)(struct json_object *o,
struct printbuf *pb);
@@ -41,4 +45,8 @@ struct json_object_iter
struct lh_entry *entry;
};
+#ifdef __cplusplus
+}
+#endif
+
#endif