From a83cd30c31bbffe799be237cbbe2e4302e2243e0 Mon Sep 17 00:00:00 2001 From: raoulh Date: Mon, 19 Oct 2009 02:14:38 -0700 Subject: [PATCH] Add C++ guards to jansson.h Signed-off-by: Petri Lehtinen --- src/jansson.h | 8 ++++++++ 1 file changed, 8 insertions(+) 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 #include +#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 -- 2.1.4