diff options
author | raoulh <raoul.hecky@gmail.com> | 2009-10-19 02:14:38 -0700 |
---|---|---|
committer | Petri Lehtinen <petri@digip.org> | 2009-10-19 12:22:21 +0300 |
commit | a83cd30c31bbffe799be237cbbe2e4302e2243e0 (patch) | |
tree | c52d4e7b2c3ac33281df08586367bc432fb2a478 | |
parent | a00988f6636a4e53b736be8758b63db8d6ca0446 (diff) | |
download | jansson-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.h | 8 |
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 |