mirror of https://github.com/akheron/jansson
Add C++ guards to jansson.h
Signed-off-by: Petri Lehtinen <petri@digip.org>
This commit is contained in:
parent
a00988f663
commit
a83cd30c31
|
@ -11,6 +11,10 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
/* types */
|
/* types */
|
||||||
|
|
||||||
typedef enum {
|
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_dumpf(const json_t *json, FILE *output, unsigned long flags);
|
||||||
int json_dump_file(const json_t *json, const char *path, unsigned long flags);
|
int json_dump_file(const json_t *json, const char *path, unsigned long flags);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue