projects
/
profile
/
ivi
/
jansson.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a00988f
)
Add C++ guards to jansson.h
author
raoulh
<raoul.hecky@gmail.com>
Mon, 19 Oct 2009 09:14:38 +0000
(
02:14
-0700)
committer
Petri Lehtinen
<petri@digip.org>
Mon, 19 Oct 2009 09:22:21 +0000
(12:22 +0300)
Signed-off-by: Petri Lehtinen <petri@digip.org>
src/jansson.h
patch
|
blob
|
history
diff --git
a/src/jansson.h
b/src/jansson.h
index
aff76e6
..
50073d2
100644
(file)
--- 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