summaryrefslogtreecommitdiff
path: root/jsmn.h
diff options
context:
space:
mode:
Diffstat (limited to 'jsmn.h')
-rw-r--r--jsmn.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/jsmn.h b/jsmn.h
index 54930ad55..c8f388cd0 100644
--- a/jsmn.h
+++ b/jsmn.h
@@ -1,6 +1,10 @@
#ifndef __JSMN_H_
#define __JSMN_H_
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/**
* JSON type identifier. Basic types are:
* o Object
@@ -62,4 +66,8 @@ void jsmn_init(jsmn_parser *parser);
jsmnerr_t jsmn_parse(jsmn_parser *parser, const char *js, size_t len,
jsmntok_t *tokens, unsigned int num_tokens);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* __JSMN_H_ */