Add C++ guards to jansson.h

Signed-off-by: Petri Lehtinen <petri@digip.org>
This commit is contained in:
raoulh 2009-10-19 02:14:38 -07:00 committed by Petri Lehtinen
parent a00988f663
commit a83cd30c31
1 changed files with 8 additions and 0 deletions

View File

@ -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