projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
99e5e05
)
json: Add extern "C" { ... } to headers.
author
Ben Pfaff
<blp@nicira.com>
Fri, 6 Aug 2010 23:05:17 +0000
(16:05 -0700)
committer
Ben Pfaff
<blp@nicira.com>
Fri, 6 Aug 2010 23:05:17 +0000
(16:05 -0700)
This makes it easier for external C++ projects to import the header.
CC: Jeremy Stribling <strib@nicira.com>
lib/json.h
patch
|
blob
|
history
diff --git
a/lib/json.h
b/lib/json.h
index 41257b0d7e610fe3da88e042f917aa7e266557c4..5c32c06cd42f166ef58aae3b031dd9558604742b 100644
(file)
--- a/
lib/json.h
+++ b/
lib/json.h
@@
-32,6
+32,10
@@
#include "shash.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct ds;
/* Type of a JSON value. */
@@
-128,4
+132,8
@@
void json_to_ds(const struct json *, int flags, struct ds *);
bool json_string_unescape(const char *in, size_t in_len, char **outp);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* json.h */