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