summaryrefslogtreecommitdiff
path: root/debug.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 /debug.h
parent266a3fd30141b31632eead6739ace524bc172de5 (diff)
downloadjson-c-aaec1ef3c542accb118af48c09edc7e07675671a.tar.gz
* 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 'debug.h')
-rw-r--r--debug.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/debug.h b/debug.h
index 951e994..59a4dfc 100644
--- a/debug.h
+++ b/debug.h
@@ -12,6 +12,10 @@
#ifndef _DEBUG_H_
#define _DEBUG_H_
+#ifdef __cplusplus
+extern "C" {
+#endif
+
extern void mc_set_debug(int debug);
extern int mc_get_debug(void);
@@ -39,4 +43,8 @@ extern void mc_info(const char *msg, ...);
#define MC_INFO(x, ...) if (0) mc_info(x, ##__VA_ARGS__)
#endif
+#ifdef __cplusplus
+}
+#endif
+
#endif