aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraoulh <raoul.hecky@gmail.com>2009-10-19 02:14:38 -0700
committerPetri Lehtinen <petri@digip.org>2009-10-19 12:22:21 +0300
commita83cd30c31bbffe799be237cbbe2e4302e2243e0 (patch)
treec52d4e7b2c3ac33281df08586367bc432fb2a478
parenta00988f6636a4e53b736be8758b63db8d6ca0446 (diff)
downloadjansson-a83cd30c31bbffe799be237cbbe2e4302e2243e0.zip
jansson-a83cd30c31bbffe799be237cbbe2e4302e2243e0.tar.gz
jansson-a83cd30c31bbffe799be237cbbe2e4302e2243e0.tar.bz2
Add C++ guards to jansson.h
Signed-off-by: Petri Lehtinen <petri@digip.org>
-rw-r--r--src/jansson.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/jansson.h b/src/jansson.h
index aff76e6..50073d2 100644
--- a/src/jansson.h
+++ b/src/jansson.h
@@ -11,6 +11,10 @@
#include <stdio.h>
#include <stdint.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* types */
typedef enum {
@@ -144,4 +148,8 @@ char *json_dumps(const json_t *json, unsigned long flags);
int json_dumpf(const json_t *json, FILE *output, unsigned long flags);
int json_dump_file(const json_t *json, const char *path, unsigned long flags);
+#ifdef __cplusplus
+}
+#endif
+
#endif